From fcf5a4f4b3e1a984f65d873e7a5a8c830b1ad9bf Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Wed, 3 Nov 2010 10:02:24 +0100 Subject: Change default for BGP IPv6 socket to V6ONLY. Also add a new option 'dual' for the old behavior. --- nest/config.Y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'nest') diff --git a/nest/config.Y b/nest/config.Y index 39cd901..920a305 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(LISTEN, BGP, V6ONLY, ADDRESS, PORT, PASSWORDS, DESCRIPTION) +CF_KEYWORDS(LISTEN, BGP, V6ONLY, DUAL, ADDRESS, PORT, PASSWORDS, DESCRIPTION) CF_KEYWORDS(RELOAD, IN, OUT, MRTDUMP, MESSAGES, RESTRICT, MEMORY, IGP_METRIC) CF_ENUM(T_ENUM_RTS, RTS_, DUMMY, STATIC, INHERIT, DEVICE, STATIC_DEVICE, REDIRECT, @@ -97,7 +97,8 @@ listen_opts: 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; } + | V6ONLY { new_config->listen_bgp_flags = 0; } + | DUAL { new_config->listen_bgp_flags = 1; } ; -- cgit v1.2.3