]> git.ipfire.org Git - thirdparty/systemd.git/commit
Use /proc/net/sockstat6 to detect IPv6 support 2134/head
authorJorgen Schaefer <contact@jorgenschaefer.de>
Thu, 10 Dec 2015 12:24:45 +0000 (13:24 +0100)
committerJorgen Schaefer <contact@jorgenschaefer.de>
Thu, 10 Dec 2015 12:47:19 +0000 (13:47 +0100)
commit7377964d4c9791a29e3679bafc65f6bfbb0bb019
tree97b24b86ea192c760969c6fb6a4db9bd429a5f2e
parent312501458d119704e27e14ef59a18f612757421c
Use /proc/net/sockstat6 to detect IPv6 support

The file /sys/module/ipv6 does not exist in all container
implementations (e.g. Virtuozzo). Using /proc/net/sockstat6
detects IPv6 support reliably in these environments, too.

This file does not exist when the kernel is not compiled with
IPv6 support, or if IPv6 support is disabled, so simply checking
for existence should be a suitable check.

Fixes #2059
src/basic/socket-util.c