Skip to content

Commit

Permalink
XXX potential fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mptre committed Apr 18, 2020
1 parent 6d02ba1 commit 56924c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/netinet/ip_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ ip_input_if(struct mbuf **mp, int *offp, int nxt, int af, struct ifnet *ifp)

if (ip->ip_dst.s_addr == INADDR_BROADCAST ||
ip->ip_dst.s_addr == INADDR_ANY) {
m->m_flags |= M_BCAST;
nxt = ip_ours(mp, offp, nxt, af);
goto out;
}
Expand Down Expand Up @@ -748,6 +749,7 @@ in_ouraddr(struct mbuf *m, struct ifnet *ifp, struct rtentry **prt)

if (IN_CLASSFULBROADCAST(ip->ip_dst.s_addr,
ifatoia(ifa)->ia_addr.sin_addr.s_addr)) {
m->m_flags |= M_BCAST;
match = 1;
break;
}
Expand Down

0 comments on commit 56924c3

Please sign in to comment.