chiark / gitweb /
resolved: IPV6_UNICAST_IF may fail if we already are bound to a device, like we are...
authorLennart Poettering <lennart@poettering.net>
Fri, 1 Aug 2014 17:25:06 +0000 (19:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 1 Aug 2014 17:25:06 +0000 (19:25 +0200)
src/resolve/resolved-dns-stream.c

index 9a0d59d..eb78587 100644 (file)
@@ -172,11 +172,11 @@ static int dns_stream_identify(DnsStream *s) {
                 if (s->local.sa.sa_family == AF_INET) {
                         r = setsockopt(s->fd, IPPROTO_IP, IP_UNICAST_IF, &ifindex, sizeof(ifindex));
                         if (r < 0)
-                                return -errno;
+                                log_debug("Failed to invoke IP_UNICAST_IF: %m");
                 } else if (s->local.sa.sa_family == AF_INET6) {
                         r = setsockopt(s->fd, IPPROTO_IPV6, IPV6_UNICAST_IF, &ifindex, sizeof(ifindex));
                         if (r < 0)
-                                return -errno;
+                                log_debug("Failed to invoke IPV6_UNICAST_IF: %m");
                 }
         }