mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-07 06:56:56 +01:00
Properly move the setting of bstp_linkstate_p to the bridgestp module.
This commit is contained in:
parent
2bf274778d
commit
8bc736d0dd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167575
@ -2069,6 +2069,7 @@ bstp_modevent(module_t mod, int type, void *data)
|
|||||||
bstp_linkstate_p = bstp_linkstate;
|
bstp_linkstate_p = bstp_linkstate;
|
||||||
break;
|
break;
|
||||||
case MOD_UNLOAD:
|
case MOD_UNLOAD:
|
||||||
|
bstp_linkstate_p = NULL;
|
||||||
mtx_destroy(&bstp_list_mtx);
|
mtx_destroy(&bstp_list_mtx);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -459,7 +459,6 @@ bridge_modevent(module_t mod, int type, void *data)
|
|||||||
bridge_input_p = bridge_input;
|
bridge_input_p = bridge_input;
|
||||||
bridge_output_p = bridge_output;
|
bridge_output_p = bridge_output;
|
||||||
bridge_dn_p = bridge_dummynet;
|
bridge_dn_p = bridge_dummynet;
|
||||||
bstp_linkstate_p = bstp_linkstate;
|
|
||||||
bridge_detach_cookie = EVENTHANDLER_REGISTER(
|
bridge_detach_cookie = EVENTHANDLER_REGISTER(
|
||||||
ifnet_departure_event, bridge_ifdetach, NULL,
|
ifnet_departure_event, bridge_ifdetach, NULL,
|
||||||
EVENTHANDLER_PRI_ANY);
|
EVENTHANDLER_PRI_ANY);
|
||||||
@ -472,7 +471,6 @@ bridge_modevent(module_t mod, int type, void *data)
|
|||||||
bridge_input_p = NULL;
|
bridge_input_p = NULL;
|
||||||
bridge_output_p = NULL;
|
bridge_output_p = NULL;
|
||||||
bridge_dn_p = NULL;
|
bridge_dn_p = NULL;
|
||||||
bstp_linkstate_p = NULL;
|
|
||||||
mtx_destroy(&bridge_list_mtx);
|
mtx_destroy(&bridge_list_mtx);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user