Lines Matching refs:new
56 /* Allocate a new community list entry. */
60 struct community_entry *new;
62 new = XMALLOC (MTYPE_COMMUNITY_LIST_ENTRY, sizeof (struct community_entry));
63 memset (new, 0, sizeof (struct community_entry));
64 return new;
93 /* Allocate a new community-list. */
97 struct community_list *new;
99 new = XMALLOC (MTYPE_COMMUNITY_LIST, sizeof (struct community_list));
100 memset (new, 0, sizeof (struct community_list));
101 return new;
119 struct community_list *new;
129 /* Allocate new community_list and copy given name. */
130 new = community_list_new ();
131 new->name = XSTRDUP (MTYPE_COMMUNITY_LIST_NAME, name);
146 new->sort = COMMUNITY_LIST_NUMBER;
157 new->sort = COMMUNITY_LIST_STRING;
169 new->parent = list;
174 list->head = list->tail = new;
175 return new;
181 new->prev = list->tail;
182 list->tail->next = new;
183 list->tail = new;
184 return new;
190 new->next = list->head;
191 list->head->prev = new;
192 list->head = new;
193 return new;
197 new->next = point;
198 new->prev = point->prev;
201 point->prev->next = new;
202 point->prev = new;
204 return new;
509 struct community_entry *new)
515 if (entry->style != new->style)
518 if (entry->direct != new->direct)
521 if (entry->any != new->any)
530 if (community_cmp (entry->u.com, new->u.com))
534 if (ecommunity_cmp (entry->u.ecom, new->u.ecom))
539 if (strcmp (entry->config, new->config) == 0)
565 /* When community-list already has entry, new entry should have same
725 /* When community-list already has entry, new entry should have same