Searched refs:aspath (Results 1 - 13 of 13) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/bgpd/
H A Dbgp_aspath.h32 struct aspath struct
34 /* Reference count to this aspath. */
55 struct aspath *aspath_parse ();
56 struct aspath *aspath_dup (struct aspath *);
57 struct aspath *aspath_aggregate (struct aspath *, struct aspath *);
58 struct aspath *aspath_prepend (struct aspath *, struc
[all...]
H A Dbgp_regex.h31 int bgp_regexec (regex_t *regex, struct aspath *aspath);
H A Dbgp_aspath.c51 /* Hash for aspath. This is the top level structure of AS path. */
55 static struct aspath *
58 struct aspath *aspath;
60 aspath = XMALLOC (MTYPE_AS_PATH, sizeof (struct aspath));
61 memset (aspath, 0, sizeof (struct aspath));
62 return aspath;
67 aspath_free (struct aspath *aspat
56 struct aspath *aspath; local
65 aspath_free(struct aspath *aspath) argument
78 aspath_unintern(struct aspath *aspath) argument
256 aspath_intern(struct aspath *aspath) argument
280 aspath_dup(struct aspath *aspath) argument
305 struct aspath *aspath; local
365 aspath_aggregate_segment_copy(struct aspath *aspath, struct assegment *seg, int i) argument
392 aspath_aggregate_as_set_add(struct aspath *aspath, struct assegment *asset, as_t as) argument
454 struct aspath *aspath; local
536 aspath_firstas_check(struct aspath *aspath, as_t asno) argument
557 aspath_loop_check(struct aspath *aspath, as_t asno) argument
586 aspath_private_as_check(struct aspath *aspath) argument
709 aspath_add_one_as(struct aspath *aspath, as_t asno, u_char type) argument
779 aspath_add_seq(struct aspath *aspath, as_t asno) argument
855 aspath_delete_confed_seq(struct aspath *aspath) argument
895 aspath_add_confed_seq(struct aspath *aspath, as_t asno) argument
962 struct aspath *aspath; local
1063 struct aspath *aspath; local
1116 aspath_key_make(struct aspath *aspath) argument
[all...]
H A Dbgp_regex.c83 bgp_regexec (regex_t *regex, struct aspath *aspath) argument
85 return regexec (regex, aspath->str, 0, NULL, 0);
H A Dbgp_attr.c295 if (attr->aspath)
296 key += aspath_key_make (attr->aspath);
338 && attr1->aspath == attr2->aspath
390 if (attr->aspath)
392 if (! attr->aspath->refcnt)
393 attr->aspath = aspath_intern (attr->aspath);
395 attr->aspath->refcnt++;
440 attr->aspath
471 bgp_attr_aggregate_intern(struct bgp *bgp, u_char origin, struct aspath *aspath, struct community *community, int as_set) argument
523 struct aspath *aspath; local
647 struct aspath *aspath; local
1345 struct aspath *aspath; local
1745 struct aspath *aspath; local
[all...]
H A Dbgp_attr.h72 struct aspath *aspath; member in struct:attr
112 struct attr *bgp_attr_aggregate_intern (struct bgp *, u_char, struct aspath *, struct community *, int as_set);
H A Dbgp_filter.c382 as_filter_match (struct as_filter *asfilter, struct aspath *aspath)
384 if (bgp_regexec (asfilter->reg, aspath) != REG_NOMATCH)
394 struct aspath *aspath;
396 aspath = (struct aspath *) object;
403 if (as_filter_match (asfilter, aspath))
380 as_filter_match(struct as_filter *asfilter, struct aspath *aspath) argument
392 struct aspath *aspath; local
H A Dbgp_route.c220 if (new->attr->aspath->count < exist->attr->aspath->count)
222 if (new->attr->aspath->count > exist->attr->aspath->count)
233 internal_as_route = (new->attr->aspath->length == 0
234 && exist->attr->aspath->length == 0);
235 confed_as_route = (new->attr->aspath->length > 0
236 && exist->attr->aspath->length > 0
237 && new->attr->aspath->count == 0
238 && exist->attr->aspath
1292 struct aspath *aspath; local
2668 struct aspath *aspath = NULL; local
2908 struct aspath *aspath = NULL; local
[all...]
H A Dbgp_routemap.c366 return ((as_list_apply (as_list, bgp_info->attr->aspath) == AS_FILTER_DENY) ? RMAP_NOMATCH : RMAP_MATCH);
385 /* Route map commands for aspath matching. */
408 return bgp_regexec (regex, bgp_info->attr->aspath);
433 /* Route map commands for aspath matching. */
872 struct aspath *aspath;
873 struct aspath *new;
878 aspath = rule;
881 if (binfo->attr->aspath->refcnt)
882 new = aspath_dup (binfo->attr->aspath);
859 struct aspath *aspath; local
884 struct aspath *aspath; local
896 struct aspath *aspath = rule; local
[all...]
H A Dbgp_debug.c220 if (attr->aspath)
222 aspath_print (attr->aspath));
H A Dbgp_snmp.c783 *var_len = binfo->attr->aspath->length;
784 return (u_char *) binfo->attr->aspath->data;
H A Dbgp_packet.c1558 if (attr.aspath)
1559 aspath_unintern (attr.aspath);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/tools/
H A Drrcheck.pl35 $aspath = $5;
36 ($origin) = ($aspath =~ /([\d]+)$/);
38 print "$nexthop [$origin] $prefix $aspath ";

Completed in 115 milliseconds