mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
Parse 'SOURCE::' to only use a specific source for an AS-SET or Route Set
This extension allows operators to specify what IRR source to use when expanding an AS-SET. For example: `bgpq4 RIPE::AS15562:AS-SNIJDERS` The notation is also used in databases like PeeringDB. Authored-by: James Bensley <jwbensley@gmail.com>
This commit is contained in:
6
extern.h
6
extern.h
@@ -91,6 +91,8 @@ struct bgpq_expander {
|
||||
struct sx_radix_tree *tree;
|
||||
int family;
|
||||
char *sources;
|
||||
char *defaultsources;
|
||||
unsigned int usesource;
|
||||
uint32_t asnumber;
|
||||
int aswidth;
|
||||
char *name;
|
||||
@@ -126,6 +128,10 @@ int bgpq_expander_add_prefix(struct bgpq_expander *b, char *prefix);
|
||||
int bgpq_expander_add_prefix_range(struct bgpq_expander *b, char *prefix);
|
||||
int bgpq_expander_add_stop(struct bgpq_expander *b, char *object);
|
||||
|
||||
char* bgpq_get_asset(char *object);
|
||||
char* bgpq_get_rset(char *object);
|
||||
char* bgpq_get_source(char *object);
|
||||
|
||||
int bgpq_expand(struct bgpq_expander *b);
|
||||
|
||||
void bgpq4_print_prefixlist(FILE *f, struct bgpq_expander *b);
|
||||
|
||||
Reference in New Issue
Block a user