diff options
author | brooks <brooks@FreeBSD.org> | 2001-09-25 18:40:52 +0000 |
---|---|---|
committer | brooks <brooks@FreeBSD.org> | 2001-09-25 18:40:52 +0000 |
commit | 74063dd723dfad807cddf4ebc4e8bec0a0400b08 (patch) | |
tree | 047925a0cd0ed3cd9eac86164bb29b8242a91c33 /sys/netinet/ip_input.c | |
parent | 7f833143d714e030ab2c3c5e75763673067276e3 (diff) | |
download | FreeBSD-src-74063dd723dfad807cddf4ebc4e8bec0a0400b08.zip FreeBSD-src-74063dd723dfad807cddf4ebc4e8bec0a0400b08.tar.gz |
Make faith loadable, unloadable, and clonable.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 69eb78d..d80c7d4 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -60,6 +60,7 @@ #include <net/pfil.h> #include <net/if.h> +#include <net/if_types.h> #include <net/if_var.h> #include <net/if_dl.h> #include <net/route.h> @@ -84,11 +85,6 @@ #include <netkey/key.h> #endif -#include "faith.h" -#if defined(NFAITH) && NFAITH > 0 -#include <net/if_types.h> -#endif - #ifdef DUMMYNET #include <netinet/ip_dummynet.h> #endif @@ -557,6 +553,7 @@ pass: * the packets are received. */ checkif = ip_checkinterface && (ipforwarding == 0) && + m->m_pkthdr.rcvif != NULL && ((m->m_pkthdr.rcvif->if_flags & IFF_LOOPBACK) == 0) && (ip_fw_fwd_addr == NULL); @@ -634,7 +631,6 @@ pass: if (ip->ip_dst.s_addr == INADDR_ANY) goto ours; -#if defined(NFAITH) && 0 < NFAITH /* * FAITH(Firewall Aided Internet Translator) */ @@ -646,7 +642,7 @@ pass: m_freem(m); return; } -#endif + /* * Not for us; forward if possible and desirable. */ |