Mercurial > hg > dhcpcd
changeset 2512:c0bbe10f3794 draft
Warn when SO_REUSEPORT fails instead of bailing to accomodate dodgy Linux headers.
| author | Roy Marples <roy@marples.name> |
|---|---|
| date | Tue, 03 Jun 2014 14:03:14 +0000 |
| parents | e1ab5b72e192 |
| children | 6279f3b8acfc |
| files | dhcp6.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dhcp6.c Tue Jun 03 12:49:48 2014 +0000 +++ b/dhcp6.c Tue Jun 03 14:03:14 2014 +0000 @@ -2537,7 +2537,7 @@ 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)
