diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2009-06-23 11:08:30 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2009-06-23 11:08:30 +0200 |
commit | d72cdff411d0bf4ddecaea5d0fc6d4341b4cb3f1 (patch) | |
tree | 809ffc879dfe0e137204571524a3a9a31a2363dd /nest | |
parent | da95a7a7dad6ebf572adfb448dfc1a5c8400e6ab (diff) | |
download | bird-d72cdff411d0bf4ddecaea5d0fc6d4341b4cb3f1.tar bird-d72cdff411d0bf4ddecaea5d0fc6d4341b4cb3f1.zip |
Replace 'bind' option with 'listen' option.
To be consistent with other daemons.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/config.Y | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nest/config.Y b/nest/config.Y index b3dfdf2..dc31224 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -44,7 +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_KEYWORDS(LISTEN, 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) @@ -84,19 +84,19 @@ idval: ; -CF_ADDTO(conf, bind) +CF_ADDTO(conf, listen) -bind: BIND BGP bind_opts ';' ; +listen: LISTEN BGP listen_opts ';' ; -bind_opts: +listen_opts: /* Nothing */ - | bind_opts bind_opt + | listen_opts listen_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; } +listen_opt: + ADDRESS ipa { new_config->listen_bgp_addr = $2; } + | PORT expr { new_config->listen_bgp_port = $2; } + | V6ONLY { new_config->listen_bgp_flags |= SKF_V6ONLY; } ; |