summaryrefslogtreecommitdiffstats
path: root/nest
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-11-03 10:02:24 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-11-03 10:02:24 +0100
commitfcf5a4f4b3e1a984f65d873e7a5a8c830b1ad9bf (patch)
treef0b74ba2b40e633dd9ea59bfb1168d7fa759a5ef /nest
parent5adc02a6f87bda06094ce36eb699884c03760bf5 (diff)
downloadbird-fcf5a4f4b3e1a984f65d873e7a5a8c830b1ad9bf.tar
bird-fcf5a4f4b3e1a984f65d873e7a5a8c830b1ad9bf.zip
Change default for BGP IPv6 socket to V6ONLY.
Also add a new option 'dual' for the old behavior.
Diffstat (limited to 'nest')
-rw-r--r--nest/config.Y5
1 files changed, 3 insertions, 2 deletions
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; }
;