diff options
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_network.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index bd2e2d68..b5c4c602 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -387,14 +387,7 @@ bgp_listener (int sock, struct sockaddr *sa, socklen_t salen) # endif #endif -#ifdef IPV6_V6ONLY - /* Want only IPV6 on ipv6 socket (not mapped addresses) */ - if (sa->sa_family == AF_INET6) { - int on = 1; - setsockopt (sock, IPPROTO_IPV6, IPV6_V6ONLY, - (void *) &on, sizeof (on)); - } -#endif + sockopt_v6only (sa->sa_family, sock); ret = bind (sock, sa, salen); en = errno; |