diff options
| author | David Greenman <dg@FreeBSD.org> | 1997-04-03 05:14:45 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1997-04-03 05:14:45 +0000 |
| commit | ca98b82c8df1e00c65cd0837022fdd1d07b10cfa (patch) | |
| tree | a06c467c106468fdf665b8be97ae97171c455295 /sys/netinet/udp_usrreq.c | |
| parent | 5d00c0a49935cc4ba172d6018729ca72bc562343 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 56a84acccd13..fe1a8fc67c28 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95 - * $Id: udp_usrreq.c,v 1.35 1997/02/24 20:31:25 wollman Exp $ + * $Id: udp_usrreq.c,v 1.36 1997/03/03 09:23:37 davidg Exp $ */ #include <sys/param.h> @@ -435,8 +435,8 @@ udp_output(inp, m, addr, control) ui->ui_sum = 0xffff; } ((struct ip *)ui)->ip_len = sizeof (struct udpiphdr) + len; - ((struct ip *)ui)->ip_ttl = inp->inp_ip.ip_ttl; /* XXX */ - ((struct ip *)ui)->ip_tos = inp->inp_ip.ip_tos; /* XXX */ + ((struct ip *)ui)->ip_ttl = inp->inp_ip_ttl; /* XXX */ + ((struct ip *)ui)->ip_tos = inp->inp_ip_tos; /* XXX */ udpstat.udps_opackets++; error = ip_output(m, inp->inp_options, &inp->inp_route, inp->inp_socket->so_options & (SO_DONTROUTE | SO_BROADCAST), @@ -497,7 +497,7 @@ udp_attach(struct socket *so, int proto) error = soreserve(so, udp_sendspace, udp_recvspace); if (error) return error; - ((struct inpcb *) so->so_pcb)->inp_ip.ip_ttl = ip_defttl; + ((struct inpcb *) so->so_pcb)->inp_ip_ttl = ip_defttl; return 0; } |
