]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Warn when SO_REUSEPORT fails instead of bailing to accomodate dodgy Linux headers.
authorRoy Marples <roy@marples.name>
Tue, 3 Jun 2014 14:03:14 +0000 (14:03 +0000)
committerRoy Marples <roy@marples.name>
Tue, 3 Jun 2014 14:03:14 +0000 (14:03 +0000)
dhcp6.c

diff --git a/dhcp6.c b/dhcp6.c
index 0a4d0fe7c4a17fa3289a7f8a9576dc3aebf1f461..ad439fd2f6521b57ed8fcd16dbeb2197384fd3f7 100644 (file)
--- a/dhcp6.c
+++ b/dhcp6.c
@@ -2537,7 +2537,7 @@ dhcp6_open(struct dhcpcd_ctx *dctx)
        n = 1;
        if (setsockopt(ctx->dhcp_fd, SOL_SOCKET, SO_REUSEPORT,
            &n, sizeof(n)) == -1)
-               goto errexit;
+               syslog(LOG_WARNING, "setsockopt: SO_REUSEPORT: %m");
 #endif
 
        if (bind(ctx->dhcp_fd, (struct sockaddr *)&sa, sizeof(sa)) == -1)