Move pf* init from SI_SUB_PSEUDO to SI_SUB_PROTO_IFATTACHDOMAIN where it is
save to call if_attachdomain from if_attach() (as done for if_loop.c). We will now end up with a properly initialized if_afdata array and the nd6 callout will no longer try to deref a NULL pointer. Still this is a temp workaround and the locking for if_afdata should be revisited at a later point. Requested by: rwatson Discussed with and tested by: yongari (a while ago) PR: kern/70393 MFC after: 5 days
This commit is contained in:
parent
17e6f7addb
commit
0b77f79647
@ -377,6 +377,6 @@ static moduledata_t pflog_mod = {
|
||||
|
||||
#define PFLOG_MODVER 1
|
||||
|
||||
DECLARE_MODULE(pflog, pflog_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
|
||||
DECLARE_MODULE(pflog, pflog_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);
|
||||
MODULE_VERSION(pflog, PFLOG_MODVER);
|
||||
#endif /* __FreeBSD__ */
|
||||
|
@ -1662,6 +1662,6 @@ static moduledata_t pfsync_mod = {
|
||||
|
||||
#define PFSYNC_MODVER 1
|
||||
|
||||
DECLARE_MODULE(pfsync, pfsync_mod, SI_SUB_PSEUDO, SI_ORDER_ANY);
|
||||
DECLARE_MODULE(pfsync, pfsync_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_ANY);
|
||||
MODULE_VERSION(pfsync, PFSYNC_MODVER);
|
||||
#endif /* __FreeBSD__ */
|
||||
|
@ -3411,6 +3411,6 @@ static moduledata_t pf_mod = {
|
||||
0
|
||||
};
|
||||
|
||||
DECLARE_MODULE(pf, pf_mod, SI_SUB_PSEUDO, SI_ORDER_FIRST);
|
||||
DECLARE_MODULE(pf, pf_mod, SI_SUB_PROTO_IFATTACHDOMAIN, SI_ORDER_FIRST);
|
||||
MODULE_VERSION(pf, PF_MODVER);
|
||||
#endif /* __FreeBSD__ */
|
||||
|
Loading…
Reference in New Issue
Block a user