FreeBSD Bugzilla – Attachment 56336 Details for
Bug 85052
[patch] ip_fastforward.c mishandle broadcast packets
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.15 KB, created by
Dmitrij Tejblum
on 2005-08-17 21:30:18 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Dmitrij Tejblum
Created:
2005-08-17 21:30:18 UTC
Size:
1.15 KB
patch
obsolete
>Index: ip_fastfwd.c >=================================================================== >RCS file: /home/ncvs/src/sys/netinet/ip_fastfwd.c,v >retrieving revision 1.17.2.7 >diff -u -r1.17.2.7 ip_fastfwd.c >--- ip_fastfwd.c 31 Mar 2005 17:03:45 -0000 1.17.2.7 >+++ ip_fastfwd.c 17 Aug 2005 10:41:21 -0000 >@@ -157,8 +157,6 @@ > struct mbuf *m0 = NULL; > struct route ro; > struct sockaddr_in *dst = NULL; >- struct in_ifaddr *ia = NULL; >- struct ifaddr *ifa = NULL; > struct ifnet *ifp; > struct in_addr odest, dest; > u_short sum, ip_len; >@@ -324,21 +322,10 @@ > return 0; > > /* >- * Or is it for a local IP broadcast address on this host? >+ * No L2 broadcast or multicast. > */ >- 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; >- ia = ifatoia(ifa); >- if (ia->ia_netbroadcast.s_addr == ip->ip_dst.s_addr) >- return 0; >- if (satosin(&ia->ia_broadaddr)->sin_addr.s_addr == >- ip->ip_dst.s_addr) >- return 0; >- } >- } >+ if (m->m_flags & (M_BCAST|M_MCAST)) >+ return 0; > ipstat.ips_total++; > > /*
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 85052
: 56336