diff options
author | glebius <glebius@FreeBSD.org> | 2012-10-08 23:02:32 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-10-08 23:02:32 +0000 |
commit | 3435e7fe3f12f04f87b235ee1f2f65b793ffc874 (patch) | |
tree | bbc9afd184a24da9a6b161972e1d3ced5f83f6f1 /sys/netpfil | |
parent | 64d975866c61ed7ef51c22ef738f5d3742ff30f1 (diff) | |
download | FreeBSD-src-3435e7fe3f12f04f87b235ee1f2f65b793ffc874.zip FreeBSD-src-3435e7fe3f12f04f87b235ee1f2f65b793ffc874.tar.gz |
Any pfil(9) hooks should be called with already set VNET context.
Reviewed by: bz
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/pf/pf_ioctl.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netpfil/pf/pf_ioctl.c b/sys/netpfil/pf/pf_ioctl.c index 3037725..a8b71d5 100644 --- a/sys/netpfil/pf/pf_ioctl.c +++ b/sys/netpfil/pf/pf_ioctl.c @@ -3475,9 +3475,7 @@ pf_check_in(void *arg, struct mbuf **m, struct ifnet *ifp, int dir, { int chk; - CURVNET_SET(ifp->if_vnet); chk = pf_test(PF_IN, ifp, m, inp); - CURVNET_RESTORE(); if (chk && *m) { m_freem(*m); *m = NULL; @@ -3498,9 +3496,7 @@ pf_check_out(void *arg, struct mbuf **m, struct ifnet *ifp, int dir, (*m)->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA; } - CURVNET_SET(ifp->if_vnet); chk = pf_test(PF_OUT, ifp, m, inp); - CURVNET_RESTORE(); if (chk && *m) { m_freem(*m); *m = NULL; |