/********************************************************************** * %FUNCTION: peer_init * %ARGUMENTS: * None * %RETURNS: * Nothing * %DESCRIPTION: * Initializes peer hash table ***********************************************************************/ void l2tp_peer_init(void) { hash_init(&all_peers, offsetof(l2tp_peer, hash), peer_compute_hash, peer_compare); l2tp_option_register_section(&peer_option_handler); }
/********************************************************************** * %FUNCTION: handler_init * %ARGUMENTS: * es -- event selector * %RETURNS: * Nothing * %DESCRIPTION: * Initializes the command processor's option handler. We do not * actually start a command processor until last option has been parsed. ***********************************************************************/ void handler_init(EventSelector *es) { l2tp_option_register_section(&my_option_handler); }