Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149640419
D32913.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
990 B
Referenced Files
None
Subscribers
None
D32913.diff
View Options
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -607,7 +607,6 @@
ip = mtod(m, struct ip *);
dchg = (odst.s_addr != ip->ip_dst.s_addr);
- ifp = m->m_pkthdr.rcvif;
if (m->m_flags & M_FASTFWD_OURS) {
m->m_flags &= ~M_FASTFWD_OURS;
@@ -665,7 +664,7 @@
* checked it with carp_iamatch() and carp_forus().
*/
strong_es = V_ip_strong_es && (V_ipforwarding == 0) &&
- ifp != NULL && ((ifp->if_flags & IFF_LOOPBACK) == 0) &&
+ ((ifp->if_flags & IFF_LOOPBACK) == 0) &&
ifp->if_carp == NULL && (dchg == 0);
/*
@@ -697,7 +696,7 @@
* be handled via ip_forward() and ether_output() with the loopback
* into the stack for SIMPLEX interfaces handled by ether_output().
*/
- if (ifp != NULL && ifp->if_flags & IFF_BROADCAST) {
+ if (ifp->if_flags & IFF_BROADCAST) {
CK_STAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
if (ifa->ifa_addr->sa_family != AF_INET)
continue;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 26, 10:10 PM (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30397783
Default Alt Text
D32913.diff (990 B)
Attached To
Mode
D32913: ip_input: packet filters shall not modify m_pkthdr.rcvif
Attached
Detach File
Event Timeline
Log In to Comment