diff options
| author | Jonathan Lemon <jlemon@FreeBSD.org> | 2001-03-02 20:54:03 +0000 |
|---|---|---|
| committer | Jonathan Lemon <jlemon@FreeBSD.org> | 2001-03-02 20:54:03 +0000 |
| commit | b3e95d4ed09e497b778584ac12ceea158c504e72 (patch) | |
| tree | 4cca40d83d2ae68c1c50e0c2d9ef85499f86b9b3 /sys/netinet/ip_input.c | |
| parent | 358325bf4a208e2d0cc4667961aa22a6df1206ba (diff) | |
Notes
Diffstat (limited to 'sys/netinet/ip_input.c')
| -rw-r--r-- | sys/netinet/ip_input.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index ae60decb8dab..85c1b960e9fd 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -124,6 +124,10 @@ SYSCTL_INT(_net_inet_ip, IPCTL_KEEPFAITH, keepfaith, CTLFLAG_RW, &ip_keepfaith, 0, "Enable packet capture for FAITH IPv4->IPv6 translater daemon"); +static int ip_checkinterface = 1; +SYSCTL_INT(_net_inet_ip, OID_AUTO, check_interface, CTLFLAG_RW, + &ip_checkinterface, 0, "Verify packet arrives on correct interface"); + #ifdef DIAGNOSTIC static int ipprintfs = 0; #endif @@ -513,7 +517,7 @@ pass: * check that the packet is either arriving from the * correct interface or is locally generated. */ - if (ia->ia_ifp != m->m_pkthdr.rcvif && + if (ia->ia_ifp != m->m_pkthdr.rcvif && ip_checkinterface && (m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) == 0) continue; |
