diff options
author | andre <andre@FreeBSD.org> | 2006-09-06 19:04:36 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2006-09-06 19:04:36 +0000 |
commit | b095262f189d46a0e46843ff01c0f2049119811f (patch) | |
tree | 627826d8a1734a4dbf7caf040655bde51f09e8c2 /sys/netinet/udp_usrreq.c | |
parent | ae5965062b9bbb95c18a0e4e157f2a1c1247263f (diff) | |
download | FreeBSD-src-b095262f189d46a0e46843ff01c0f2049119811f.zip FreeBSD-src-b095262f189d46a0e46843ff01c0f2049119811f.tar.gz |
Check inp_flags instead of inp_vflag for INP_ONESBCAST flag.
PR: kern/99558
Tested by: Andrey V. Elsukov <bu7cher-at-yandex.ru>
Sponsored by: TCP/IP Optimization Fundraise 2005
MFC after: 3 days
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r-- | sys/netinet/udp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 9873527..b1911b5 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -899,14 +899,14 @@ udp_output(inp, m, addr, control, td) ipflags |= IP_ROUTETOIF; if (inp->inp_socket->so_options & SO_BROADCAST) ipflags |= IP_ALLOWBROADCAST; - if (inp->inp_vflag & INP_ONESBCAST) + if (inp->inp_flags & INP_ONESBCAST) ipflags |= IP_SENDONES; /* * Set up checksum and output datagram. */ if (udpcksum) { - if (inp->inp_vflag & INP_ONESBCAST) + if (inp->inp_flags & INP_ONESBCAST) faddr.s_addr = INADDR_BROADCAST; ui->ui_sum = in_pseudo(ui->ui_src.s_addr, faddr.s_addr, htons((u_short)len + sizeof(struct udphdr) + IPPROTO_UDP)); |