summaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2015-02-22 13:50:58 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2015-02-22 13:50:58 +0100
commita1beb8f3ee7a6e41dbe4bfd336b8bf5eecb46d01 (patch)
tree07e3269bb4fa1bb649af14e0aaf931003777e601 /conf
parent86c3eea0f3ec74ac1024d4aba4e98c962126f387 (diff)
Relax BGP neighbor parameter
Permit specifying neighbor address, AS number and port independently. Add 'interface' parameter for specifying interface for link-local sessions independently. Thanks to Alexander V. Chernikov for the original patch.
Diffstat (limited to 'conf')
-rw-r--r--conf/confbase.Y10
1 files changed, 1 insertions, 9 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y
index 16a493e9..5f487c1d 100644
--- a/conf/confbase.Y
+++ b/conf/confbase.Y
@@ -72,7 +72,7 @@ CF_DECLS
%token <t> TEXT
%type <iface> ipa_scope
-%type <i> expr bool pxlen ipa_port
+%type <i> expr bool pxlen
%type <i32> expr_us
%type <time> datetime
%type <a> ipa
@@ -161,14 +161,6 @@ ipa_scope:
| '%' SYM { $$ = if_get_by_name($2->name); }
;
-ipa_port:
- /* empty */ { $$ = 0; }
- | PORT expr {
- if (($2 < 1) || ($2 > 65535)) cf_error("Invalid port number");
- $$ = $2;
- }
- ;
-
prefix:
ipa pxlen {
if (!ip_is_prefix($1, $2)) cf_error("Invalid prefix");