diff options
author | bz <bz@FreeBSD.org> | 2009-10-14 11:55:55 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-10-14 11:55:55 +0000 |
commit | b0448eafb08d8c4bc9a5c8c4ec44bf251750a21e (patch) | |
tree | c09d89f5887b2c046443dcc5a1542dc72c473e3c /sys/net/if_enc.c | |
parent | 3aead1369fa2714477a9fcbb798ceb9d3e842f8b (diff) | |
download | FreeBSD-src-b0448eafb08d8c4bc9a5c8c4ec44bf251750a21e.zip FreeBSD-src-b0448eafb08d8c4bc9a5c8c4ec44bf251750a21e.tar.gz |
Unbreak the VIMAGE build with IPSEC, broken with r197952 by
virtualizing the pfil hooks.
For consistency add the V_ to virtualize the pfil hooks in here as well.
MFC after: 55 days
X-MFC after: julian MFCed r197952.
Diffstat (limited to 'sys/net/if_enc.c')
-rw-r--r-- | sys/net/if_enc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_enc.c b/sys/net/if_enc.c index a49c5dc..b1fc038 100644 --- a/sys/net/if_enc.c +++ b/sys/net/if_enc.c @@ -243,9 +243,9 @@ ipsec_filter(struct mbuf **mp, int dir, int flags) } /* Skip pfil(9) if no filters are loaded */ - if (!(PFIL_HOOKED(&inet_pfil_hook) + if (!(PFIL_HOOKED(&V_inet_pfil_hook) #ifdef INET6 - || PFIL_HOOKED(&inet6_pfil_hook) + || PFIL_HOOKED(&V_inet6_pfil_hook) #endif )) { return (0); @@ -271,7 +271,7 @@ ipsec_filter(struct mbuf **mp, int dir, int flags) ip->ip_len = ntohs(ip->ip_len); ip->ip_off = ntohs(ip->ip_off); - error = pfil_run_hooks(&inet_pfil_hook, mp, + error = pfil_run_hooks(&V_inet_pfil_hook, mp, encif, dir, NULL); if (*mp == NULL || error != 0) @@ -285,7 +285,7 @@ ipsec_filter(struct mbuf **mp, int dir, int flags) #ifdef INET6 case 6: - error = pfil_run_hooks(&inet6_pfil_hook, mp, + error = pfil_run_hooks(&V_inet6_pfil_hook, mp, encif, dir, NULL); break; #endif |