mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 10:10:24 -04:00
Store a handle for the event handler. This will be used when unloading the
SCTP as a module. Obtained from: markj@
This commit is contained in:
parent
efdfee93c0
commit
9f36ec8bba
2 changed files with 3 additions and 2 deletions
|
|
@ -259,6 +259,7 @@ struct sctp_base_info {
|
|||
int packet_log_end;
|
||||
uint8_t packet_log_buffer[SCTP_PACKET_LOG_SIZE];
|
||||
#endif
|
||||
eventhandler_tag eh_tag;
|
||||
};
|
||||
|
||||
/*-
|
||||
|
|
|
|||
|
|
@ -90,8 +90,8 @@ sctp_init(void)
|
|||
SCTP_BASE_VAR(packet_log_end) = 0;
|
||||
memset(&SCTP_BASE_VAR(packet_log_buffer), 0, SCTP_PACKET_LOG_SIZE);
|
||||
#endif
|
||||
EVENTHANDLER_REGISTER(rt_addrmsg, sctp_addr_change_event_handler,
|
||||
NULL, EVENTHANDLER_PRI_FIRST);
|
||||
SCTP_BASE_VAR(eh_tag) = EVENTHANDLER_REGISTER(rt_addrmsg,
|
||||
sctp_addr_change_event_handler, NULL, EVENTHANDLER_PRI_FIRST);
|
||||
}
|
||||
|
||||
#ifdef VIMAGE
|
||||
|
|
|
|||
Loading…
Reference in a new issue