mirror of
https://github.com/bgp/bgpq4
synced 2025-02-28 08:53:11 +00:00
Remove option to accept routes registered for private ASNs (#77)
This commit is contained in:
@@ -128,10 +128,6 @@ It's options are as follows:
|
||||
|
||||
> generate config for Nokia SR OS classic CLI (Cisco IOS by default).
|
||||
|
||||
**-p**
|
||||
|
||||
> accept routes registered for private ASNs (default: disabled)
|
||||
|
||||
**-r** *len*
|
||||
|
||||
> allow more specific routes starting with specified masklen too.
|
||||
|
||||
2
bgpq4.8
2
bgpq4.8
@@ -109,8 +109,6 @@ extra match conditions for Juniper route-filters.
|
||||
generate config for Nokia SR OS MD-CLI (Cisco IOS by default)
|
||||
.It Fl N
|
||||
generate config for Nokia SR OS classic CLI (Cisco IOS by default).
|
||||
.It Fl p
|
||||
accept routes registered for private ASNs (default: disabled)
|
||||
.It Fl r Ar len
|
||||
allow more specific routes starting with specified masklen too.
|
||||
.It Fl R Ar len
|
||||
|
||||
@@ -50,7 +50,6 @@
|
||||
|
||||
int debug_expander = 0;
|
||||
int pipelining = 1;
|
||||
int expand_special_asn = 0;
|
||||
|
||||
static inline int
|
||||
tentry_cmp(struct sx_tentry *a, struct sx_tentry *b)
|
||||
@@ -196,8 +195,7 @@ bgpq_expander_add_as(struct bgpq_expander *b, char *as)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!expand_special_asn &&
|
||||
((asno >= 4200000000ul) || (asno >= 64496 && asno <= 65551))) {
|
||||
if (asno >= 4200000000ul || (asno >= 64496 && asno <= 65551)) {
|
||||
sx_report(SX_ERROR,"Invalid AS number: %u\n", asno);
|
||||
return 0;
|
||||
}
|
||||
|
||||
6
main.c
6
main.c
@@ -45,7 +45,6 @@
|
||||
extern int debug_expander;
|
||||
extern int debug_aggregation;
|
||||
extern int pipelining;
|
||||
extern int expand_special_asn;
|
||||
|
||||
static int
|
||||
usage(int ecode)
|
||||
@@ -197,7 +196,7 @@ main(int argc, char* argv[])
|
||||
expander.sources=getenv("IRRD_SOURCES");
|
||||
|
||||
while ((c = getopt(argc, argv,
|
||||
"46a:AbBdDEeF:S:jJKf:l:L:m:M:NnW:pr:R:G:H:tTh:UuwXsvz")) != EOF) {
|
||||
"46a:AbBdDEeF:S:jJKf:l:L:m:M:NnW:r:R:G:H:tTh:UuwXsvz")) != EOF) {
|
||||
switch (c) {
|
||||
case '4':
|
||||
/* do nothing, expander already configured for IPv4 */
|
||||
@@ -299,9 +298,6 @@ main(int argc, char* argv[])
|
||||
vendor_exclusive();
|
||||
expander.vendor = V_MIKROTIK;
|
||||
break;
|
||||
case 'p':
|
||||
expand_special_asn = 1;
|
||||
break;
|
||||
case 'r':
|
||||
refineLow = strtoul(optarg, NULL, 10);
|
||||
if (!refineLow) {
|
||||
|
||||
Reference in New Issue
Block a user