Lines Matching refs:new
53 /* Allocate a new ecommunities. */
110 struct ecommunity *new;
112 new = XMALLOC (MTYPE_ECOMMUNITY, sizeof (struct ecommunity));
113 memset (new, 0, sizeof (struct ecommunity));
114 new->size = ecom->size;
115 if (new->size)
117 new->val = XMALLOC (MTYPE_ECOMMUNITY_VAL, ecom->size * BGP_RD_SIZE);
118 memcpy (new->val, ecom->val, ecom->size * BGP_RD_SIZE);
121 new->val = NULL;
122 return new;