diff options
Diffstat (limited to 'sys/netinet6/in6_pcb.c')
-rw-r--r-- | sys/netinet6/in6_pcb.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c index fa67043..430d5e5 100644 --- a/sys/netinet6/in6_pcb.c +++ b/sys/netinet6/in6_pcb.c @@ -100,11 +100,6 @@ #include <netinet/in_pcb.h> #include <netinet6/in6_pcb.h> -#include "faith.h" -#if defined(NFAITH) && NFAITH > 0 -#include <net/if_faith.h> -#endif - #ifdef IPSEC #include <netinet6/ipsec.h> #ifdef INET6 @@ -1039,11 +1034,10 @@ in6_pcblookup_hash(pcbinfo, faddr, fport_arg, laddr, lport_arg, wildcard, ifp) u_short fport = fport_arg, lport = lport_arg; int faith; -#if defined(NFAITH) && NFAITH > 0 - faith = faithprefix(laddr); -#else - faith = 0; -#endif + if (faithprefix_p != NULL) + faith = (*faithprefix_p)(laddr); + else + faith = 0; /* * First look for an exact match. |