Lines Matching refs:new
328 struct ospf_opaque_functab *new;
350 if ((new = XCALLOC (MTYPE_OSPF_OPAQUE_FUNCTAB,
357 new->opaque_type = opaque_type;
358 new->new_if_hook = new_if_hook;
359 new->del_if_hook = del_if_hook;
360 new->ism_change_hook = ism_change_hook;
361 new->nsm_change_hook = nsm_change_hook;
362 new->config_write_router = config_write_router;
363 new->config_write_if = config_write_if;
364 new->config_write_debug = config_write_debug;
365 new->show_opaque_info = show_opaque_info;
366 new->lsa_originator = lsa_originator;
367 new->lsa_refresher = lsa_refresher;
368 new->new_lsa_hook = new_lsa_hook;
369 new->del_lsa_hook = del_lsa_hook;
371 listnode_add (funclist, new);
479 static struct opaque_info_per_type *register_opaque_info_per_type (struct ospf_opaque_functab *functab, struct ospf_lsa *new);
481 static struct opaque_info_per_id *register_opaque_info_per_id (struct opaque_info_per_type *oipt, struct ospf_lsa *new);
483 static struct opaque_info_per_id *register_opaque_lsa (struct ospf_lsa *new);
488 struct ospf_lsa *new)
500 switch (new->data->type)
503 oipt->owner = new->oi;
504 listnode_add (new->oi->opaque_lsa_self, oipt);
507 oipt->owner = new->area;
508 listnode_add (new->area->opaque_lsa_self, oipt);
512 if (new->area != NULL && (top = new->area->top) == NULL)
527 oipt->opaque_type = GET_OPAQUE_TYPE (ntohl (new->data->id.s_addr));
599 struct ospf_lsa *new)
609 oipi->opaque_id = GET_OPAQUE_ID (ntohl (new->data->id.s_addr));
612 oipi->lsa = ospf_lsa_lock (new);
649 register_opaque_lsa (struct ospf_lsa *new)
655 if ((functab = ospf_opaque_functab_lookup (new)) == NULL)
658 if ((oipt = lookup_opaque_info_by_type (new)) == NULL
659 && (oipt = register_opaque_info_per_type (functab, new)) == NULL)
662 if ((oipi = register_opaque_info_per_id (oipt, new)) == NULL)
1418 struct ospf_lsa *new = NULL;
1427 new = lsa; /* Don't touch this LSA. */
1434 /* Replace the existing lsa with the new one. */
1441 /* Register the new lsa entry and get its control info. */
1479 new = lsa;
1482 return new;