Lines Matching refs:new
558 struct mpls_te_link *new;
568 if ((new = XMALLOC (MTYPE_OSPF_MPLS_TE_LINKPARAMS,
574 memset (new, 0, sizeof (struct mpls_te_link));
576 new->area = NULL;
577 new->flags = 0;
578 new->instance = get_mpls_te_instance_value ();
579 new->ifp = ifp;
581 initialize_linkparams (new);
583 listnode_add (OspfMplsTE.iflist, new);
860 /* Create new opaque-LSA. */
866 struct ospf_lsa *new = NULL;
904 if ((new = ospf_lsa_new ()) == NULL)
910 if ((new->data = ospf_lsa_data_new (length)) == NULL)
913 ospf_lsa_free (new);
914 new = NULL;
919 new->area = area;
920 SET_FLAG (new->flags, OSPF_LSA_SELF);
921 memcpy (new->data, lsah, length);
925 return new;
931 struct ospf_lsa *new;
934 /* Create new Opaque-LSA/MPLS-TE instance. */
935 if ((new = ospf_mpls_te_lsa_new (area, lp)) == NULL)
942 if (ospf_lsa_install (NULL/*oi*/, new) == NULL)
945 ospf_lsa_free (new);
952 /* Update new LSA origination count. */
955 /* Flood new LSA through area. */
956 ospf_flood_through_area (area, NULL/*nbr*/, new);
962 zlog_info ("LSA[Type%d:%s]: Originate Opaque-LSA/MPLS-TE: Area(%s), Link(%s)", new->data->type, inet_ntoa (new->data->id), area_id, lp->ifp->name);
963 ospf_lsa_header_dump (new->data);
1025 struct ospf_lsa *new = NULL;
1052 /* Create new Opaque-LSA/MPLS-TE instance. */
1053 if ((new = ospf_mpls_te_lsa_new (area, lp)) == NULL)
1058 new->data->ls_seqnum = lsa_seqnum_increment (lsa);
1062 if (ospf_lsa_install (NULL/*oi*/, new) == NULL)
1065 ospf_lsa_free (new);
1070 ospf_flood_through_area (area, NULL/*nbr*/, new);
1076 new->data->type, inet_ntoa (new->data->id));
1077 ospf_lsa_header_dump (new->data);