Lines Matching refs:new
53 struct vertex_nexthop *new;
55 new = XCALLOC (MTYPE_OSPF_NEXTHOP, sizeof (struct vertex_nexthop));
56 new->parent = parent;
58 return new;
70 struct vertex_nexthop *new;
72 new = vertex_nexthop_new (nh->parent);
74 new->oi = nh->oi;
75 new->router = nh->router;
77 return new;
85 struct vertex *new;
87 new = XMALLOC (MTYPE_OSPF_VERTEX, sizeof (struct vertex));
88 memset (new, 0, sizeof (struct vertex));
90 new->flags = 0;
91 new->type = lsa->data->type;
92 new->id = lsa->data->id;
93 new->lsa = lsa->data;
94 new->distance = 0;
95 new->child = list_new ();
96 new->nexthop = list_new ();
98 return new;
257 ospf_nexthop_add_unique (struct vertex_nexthop *new, list nexthop)
273 if (nh->oi == new->oi &&
274 IPV4_ADDR_SAME (&nh->router, &new->router) &&
275 nh->parent == new->parent)
283 listnode_add (nexthop, new);
285 vertex_nexthop_free (new);
637 /* Install new to candidate. */
1001 /* Allocate new table tree. */
1020 /* If new Router Route is installed,