diff options
| author | Roy Marples <roy@marples.name> | 2015-12-07 07:43:49 +0000 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2015-12-07 07:43:49 +0000 |
| commit | ef2a6232d46ab180cbc5351fd5bf138acc579851 (patch) | |
| tree | 2b94d4ed95142549530191723ff85db820d33155 /if.c | |
| parent | 5a0dba229553472c3b6f7ce5b8a01967043e4d64 (diff) | |
| download | dhcpcd-ef2a6232d46ab180cbc5351fd5bf138acc579851.tar.xz | |
Work once more with INET6 less kernels.
Diffstat (limited to 'if.c')
| -rw-r--r-- | if.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -94,14 +94,16 @@ if_opensockets(struct dhcpcd_ctx *ctx) if ((ctx->link_fd = if_openlinksocket()) == -1) return -1; + /* We use this socket for some operations without INET. */ ctx->pf_inet_fd = xsocket(PF_INET, SOCK_DGRAM, 0, O_CLOEXEC); if (ctx->pf_inet_fd == -1) return -1; #if defined(INET6) && defined(BSD) ctx->pf_inet6_fd = xsocket(PF_INET6, SOCK_DGRAM, 0, O_CLOEXEC); - if (ctx->pf_inet6_fd == -1) - return -1; + /* Don't return an error so we at least work on kernels witout INET6 + * even though we expect INET6 support. + * We will fail noisily elsewhere anyway. */ #endif #ifdef IFLR_ACTIVE |
