mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
60d4ab7abb
commit
6fbfd5825f
2 changed files with 3 additions and 3 deletions
|
|
@ -333,7 +333,7 @@ rip_output(struct mbuf *m, struct socket *so, u_long dst)
|
|||
ipstat.ips_rawout++;
|
||||
}
|
||||
|
||||
if (inp->inp_vflag & INP_ONESBCAST)
|
||||
if (inp->inp_flags & INP_ONESBCAST)
|
||||
flags |= IP_SENDONES;
|
||||
|
||||
#ifdef MAC
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue