From e7b09e4ab99fc850480480bbb577ffa36a6c5cd7 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 2 Apr 2010 16:11:46 +0200 Subject: Use SO_BINDTODEVICE also in Linux/IPv6. --- sysdep/unix/io.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sysdep/unix/io.c') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index abfa5c26..a0dbb418 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -876,6 +876,9 @@ sk_setup_multicast(sock *s) if (setsockopt(s->fd, SOL_IPV6, IPV6_MULTICAST_IF, &index, sizeof(index)) < 0) ERR("IPV6_MULTICAST_IF"); + if (err = sysio_bind_to_iface(s)) + goto bad; + return 0; bad: -- cgit v1.2.3