chiark / gitweb /
basic: fix for IPv6 status (#4224)
authorSusant Sahani <ssahani@users.noreply.github.com>
Tue, 27 Sep 2016 13:55:13 +0000 (19:25 +0530)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:54 +0000 (08:50 +0200)
commitbec293e4bf293b14c95ee93e2f342571d53c5162
tree2d9c71d731f112e7b9079551476696bd9acaab61
parent666d14067ba8abed303f65fa8a86bd2e7ff7b3b1
basic: fix for IPv6 status (#4224)

Even if
```
   cat /proc/sys/net/ipv6/conf/all/disable_ipv6
1
```

is disabled

cat /proc/net/sockstat6

```
TCP6: inuse 2
UDP6: inuse 1
UDPLITE6: inuse 0
RAW6: inuse 0
FRAG6: inuse 0 memory 0
 ```

Looking for /proc/net/if_inet6 is the right choice.
src/basic/socket-util.c