chiark / gitweb /
socket: fix IPv6 availability detection
authorAndrey Borzenkov <arvidjaar@gmail.com>
Wed, 27 Oct 2010 17:40:31 +0000 (21:40 +0400)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Oct 2010 22:37:57 +0000 (00:37 +0200)
commitf89f1e8f836c8e646e0f95ab808ce20cab6ac114
tree7815094d49bb83ce44911a891802e6603569c172
parent6c5d4a999c81fdda964de216d446da673cdbd0e2
socket: fix IPv6 availability detection

If IPv6 is loaded with disable=1, any IPv6 functionality is completely
disabled until the ipv6 module is reloaded. Do not assume IPv6 is available just
because the module is present. Fixes startup error:

Oct 27 20:58:02 cooker kernel: IPv6: Loaded, but administratively disabled, reboot required to enable
Oct 27 20:58:02 cooker kernel: systemd[1]: Set hostname to <cooker>.
Oct 27 20:58:02 cooker kernel: systemd[1]: Netlink failure for request 2: Operation not supported
Oct 27 20:58:02 cooker kernel: systemd[1]: Failed to configure loopback device: Operation not supported
src/socket-util.c