summaryrefslogtreecommitdiff
path: root/proto/bgp/bgp.c
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 /proto/bgp/bgp.c
parent5adc02a6f87bda06094ce36eb699884c03760bf5 (diff)
Change default for BGP IPv6 socket to V6ONLY.
Also add a new option 'dual' for the old behavior.
Diffstat (limited to 'proto/bgp/bgp.c')
-rw-r--r--proto/bgp/bgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index ba5d755d..327292a3 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -658,7 +658,7 @@ bgp_setup_listen_sk(ip_addr addr, unsigned port, u32 flags)
s->type = SK_TCP_PASSIVE;
s->saddr = addr;
s->sport = port ? port : BGP_PORT;
- s->flags = flags;
+ s->flags = flags ? 0 : SKF_V6ONLY;
s->tos = IP_PREC_INTERNET_CONTROL;
s->rbsize = BGP_RX_BUFFER_SIZE;
s->tbsize = BGP_TX_BUFFER_SIZE;