mirror of
https://github.com/bgp/bgpq4
synced 2026-07-30 18:42:36 +00:00
explicitly refuse -6 (inet6) with as-path generation.
This commit is contained in:
@@ -503,6 +503,12 @@ main(int argc, char* argv[])
|
||||
"only with Juniper route-filters\n");
|
||||
};
|
||||
|
||||
if((expander.generation==T_ASPATH || expander.generation==T_OASPATH) &&
|
||||
af != AF_INET) {
|
||||
sx_report(SX_FATAL, "Sorry, -6 makes no sense with as-path (-f/-G) "
|
||||
"generation\n");
|
||||
};
|
||||
|
||||
if(!argv[0])
|
||||
usage(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user