Ejemplo n.º 1
0
void
ospf_if_init ()
{
  /* Initialize Zebra interface data structure. */
  om->iflist = iflist;
  if_add_hook (IF_NEW_HOOK, ospf_if_new_hook);
  if_add_hook (IF_DELETE_HOOK, ospf_if_delete_hook);
}
Ejemplo n.º 2
0
/* Allocate and initialize interface vector. */
void
stp_if_init (void)
{
  /* Default initial size of interface vector. */
  if_init();
  if_add_hook (IF_NEW_HOOK, stp_interface_new_hook);
  if_add_hook (IF_DELETE_HOOK, stp_interface_delete_hook);
  
  /* Install interface node. */
  install_node (&interface_node, stp_interface_config_write);

  /* Install commands. */
  install_element (CONFIG_NODE, &interface_cmd);
  install_element (CONFIG_NODE, &no_interface_cmd);
  install_default (INTERFACE_NODE);
  install_element (INTERFACE_NODE, &interface_desc_cmd);
  install_element (INTERFACE_NODE, &no_interface_desc_cmd);
}
Ejemplo n.º 3
0
void nhrp_interface_init(void)
{
	if_add_hook(IF_NEW_HOOK,    nhrp_if_new_hook);
	if_add_hook(IF_DELETE_HOOK, nhrp_if_delete_hook);
}