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:
parent
61208bb681
commit
6000630b72
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user