From 767981878c8cbd1cdeaf81fad0280d1d50e7ee0e Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Wed, 11 Aug 2004 10:49:56 +0000 Subject: [PATCH] Only check for local broadcast addresses if the mbuf is flagged with M_BCAST. --- sys/netinet/ip_fastfwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip_fastfwd.c b/sys/netinet/ip_fastfwd.c index 6b6d24d32fa..6f668179d2c 100644 --- a/sys/netinet/ip_fastfwd.c +++ b/sys/netinet/ip_fastfwd.c @@ -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; -- 2.45.2