MFC rev. 1.155 sys/netinet/raw_ip.c and rev. 1.178 sys/netinet/udp_usrreq.c:
INP_ONESBCAST is inpcb.inp_vflag flag not inp_flags.
This commit is contained in:
parent
5df0b2a057
commit
708a79e840
@ -316,7 +316,7 @@ rip_output(struct mbuf *m, struct socket *so, u_long dst)
|
||||
ipstat.ips_rawout++;
|
||||
}
|
||||
|
||||
if (inp->inp_flags & INP_ONESBCAST)
|
||||
if (inp->inp_vflag & INP_ONESBCAST)
|
||||
flags |= IP_SENDONES;
|
||||
|
||||
#ifdef MAC
|
||||
|
@ -860,14 +860,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_flags & INP_ONESBCAST)
|
||||
if (inp->inp_vflag & INP_ONESBCAST)
|
||||
ipflags |= IP_SENDONES;
|
||||
|
||||
/*
|
||||
* Set up checksum and output datagram.
|
||||
*/
|
||||
if (udpcksum) {
|
||||
if (inp->inp_flags & INP_ONESBCAST)
|
||||
if (inp->inp_vflag & 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 New Issue
Block a user