diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-06-18 19:20:07 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-06-18 19:20:07 +0200 |
commit | 789772ed4586213d6a7fbb867b9296a01ce1b9c0 (patch) | |
tree | 52ba2a4a50a3ddce85a13d219446691edda280d8 /nest/config.Y | |
parent | 1b3b3e34ecbc281a13d4ca0b99e891ee9c4d5cac (diff) |
Implements option that changes BGP listening socket parametres.
Diffstat (limited to 'nest/config.Y')
-rw-r--r-- | nest/config.Y | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nest/config.Y b/nest/config.Y index 3c6eb7b5..b3dfdf2a 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -44,6 +44,7 @@ CF_KEYWORDS(ROUTER, ID, PROTOCOL, PREFERENCE, DISABLED, DEBUG, ALL, OFF, DIRECT) CF_KEYWORDS(INTERFACE, IMPORT, EXPORT, FILTER, NONE, TABLE, STATES, ROUTES, FILTERS) CF_KEYWORDS(PASSWORD, FROM, PASSIVE, TO, ID, EVENTS, PACKETS, PROTOCOLS, INTERFACES) CF_KEYWORDS(PRIMARY, STATS, COUNT, FOR, COMMANDS, PREEXPORT, GENERATE) +CF_KEYWORDS(BIND, BGP, V6ONLY, ADDRESS, PORT) CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT, RIP, OSPF, OSPF_IA, OSPF_EXT1, OSPF_EXT2, BGP, PIPE) @@ -82,6 +83,23 @@ idval: } ; + +CF_ADDTO(conf, bind) + +bind: BIND BGP bind_opts ';' ; + +bind_opts: + /* Nothing */ + | bind_opts bind_opt + ; + +bind_opt: + ADDRESS ipa { new_config->bind_bgp_addr = $2; } + | PORT expr { new_config->bind_bgp_port = $2; } + | V6ONLY { new_config->bind_bgp_flags |= SKF_V6ONLY; } + ; + + /* Creation of routing tables */ CF_ADDTO(conf, newtab) |