mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
stoplist shall work for asns too.
This commit is contained in:
@@ -265,6 +265,11 @@ bgpq_expanded_macro_limit(char* as, struct bgpq_expander* b,
|
||||
b->cdepth?(b->cdepth+1):(req->depth+1));
|
||||
};
|
||||
} else if(!strncasecmp(as, "AS", 2)) {
|
||||
struct sx_tentry tkey = { .text = as };
|
||||
if (RB_FIND(tentree, &b->stoplist, &tkey)) {
|
||||
SX_DEBUG(debug_expander>2,"%s is in the stoplist, ignore\n", as);
|
||||
return 0;
|
||||
};
|
||||
if(bgpq_expander_add_as(b, as)) {
|
||||
SX_DEBUG(debug_expander>2, ".. added asn %s\n", as);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user