diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2010-11-03 10:02:24 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2010-11-03 10:02:24 +0100 |
commit | fcf5a4f4b3e1a984f65d873e7a5a8c830b1ad9bf (patch) | |
tree | f0b74ba2b40e633dd9ea59bfb1168d7fa759a5ef /proto | |
parent | 5adc02a6f87bda06094ce36eb699884c03760bf5 (diff) | |
download | bird-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 'proto')
-rw-r--r-- | proto/bgp/bgp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |