Lines Matching defs:ecom
72 if (entry->u.ecom)
73 ecommunity_free (&entry->u.ecom);
318 if (ecommunity_cmp (entry->u.ecom, arg))
356 ecommunity_regexp_match (struct ecommunity *ecom, regex_t * reg)
362 if (ecom == NULL || ecom->size == 0)
365 str = ecommunity_str (ecom);
453 ecommunity_list_match (struct ecommunity *ecom, struct community_list *list)
464 if (ecommunity_match (ecom, entry->u.ecom))
469 if (ecommunity_regexp_match (ecom, entry->reg))
579 if (ecommunity_cmp (entry->u.ecom, new->u.ecom))
710 struct ecommunity *ecom = NULL;
738 ecom = ecommunity_str2com (str, 0, 1);
742 if (! ecom && ! regex)
746 if (ecom)
747 ecom->str = ecommunity_ecom2str (ecom, ECOMMUNITY_FORMAT_DISPLAY);
753 if (ecom)
754 entry->config = ecommunity_ecom2str (ecom, ECOMMUNITY_FORMAT_COMMUNITY_LIST);
759 entry->u.ecom = ecom;
780 struct ecommunity *ecom = NULL;
796 ecom = ecommunity_str2com (str, 0, 1);
800 if (! ecom && ! regex)
803 if (ecom)
804 entry = community_list_entry_lookup (list, ecom, direct);
808 if (ecom)
809 ecommunity_free (&ecom);