Register pfil hooks when VNET != vnet0. r302298, which virtualized ipf,

assumed the pfil hook registration performed in ipf_modload() would take
care of this. However ipf_modload() is only called when the ipl kld is
loaded or when ipfilter is first called when it is statically linked
into the kernel at build time.

Prior to this, even though r302298 has been in the tree for a while, it
has never been used. So, r302298 in reality begins now.

PR:		212000
Reported by:	ahsanb@
MFC after:	1 month
This commit is contained in:
Cy Schubert 2019-06-12 11:06:54 +00:00
parent 61208bb681
commit 6000630b72
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348986

View File

@ -225,6 +225,9 @@ vnet_ipf_init(void)
""
#endif
);
} else {
(void)ipf_pfil_hook();
ipf_event_reg();
}
}
VNET_SYSINIT(vnet_ipf_init, SI_SUB_PROTO_FIREWALL, SI_ORDER_THIRD,