Lines Matching refs:new
256 struct ospf6_neighbor *new;
259 new = (struct ospf6_neighbor *)
261 if (new == NULL)
267 memset (new, 0, sizeof (struct ospf6_neighbor));
269 new->state = OSPF6_NEIGHBOR_STATE_DOWN;
271 new->router_id = router_id;
273 snprintf (new->str, sizeof (new->str), "%s%%%s", buf, o6i->interface->name);
274 new->inactivity_timer = (struct thread *) NULL;
276 new->summary_list = ospf6_lsdb_create ();
277 new->request_list = ospf6_lsdb_create ();
278 new->retrans_list = ospf6_lsdb_create ();
279 new->dbdesc_list = ospf6_lsdb_create ();
281 listnode_add (o6i->neighbor_list, new);
282 new->ospf6_interface = o6i;
284 CALL_ADD_HOOK (&neighbor_hook, new);
286 return new;