Only check for local broadcast addresses if the mbuf is flagged with M_BCAST.
This commit is contained in:
parent
0b17fba7bc
commit
767981878c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=133482
@ -338,7 +338,8 @@ ip_fastforward(struct mbuf *m)
|
||||
/*
|
||||
* Or is it for a local IP broadcast address on this host?
|
||||
*/
|
||||
if (m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST) {
|
||||
if ((m->m_flags & M_BCAST) &&
|
||||
(m->m_pkthdr.rcvif->if_flags & IFF_BROADCAST)) {
|
||||
TAILQ_FOREACH(ifa, &m->m_pkthdr.rcvif->if_addrhead, ifa_link) {
|
||||
if (ifa->ifa_addr->sa_family != AF_INET)
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user