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. --- proto/bgp/bgp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto/bgp') diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c index ba5d755..327292a 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; -- cgit v1.2.3