chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
666d140
)
basic: fix for IPv6 status (#4224)
author
Susant Sahani
<ssahani@users.noreply.github.com>
Tue, 27 Sep 2016 13:55:13 +0000
(19:25 +0530)
committer
Sven Eden
<yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:50:54 +0000
(08:50 +0200)
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
patch
|
blob
|
history
diff --git
a/src/basic/socket-util.c
b/src/basic/socket-util.c
index 16646ff9d83987bc90b0d4a303fe65a9b6bbaf10..d8006e66ebb38ea1fac1f03b8f399156f1131998 100644
(file)
--- a/
src/basic/socket-util.c
+++ b/
src/basic/socket-util.c
@@
-441,7
+441,7
@@
const char* socket_address_get_path(const SocketAddress *a) {
#endif // 0
bool socket_ipv6_is_supported(void) {
- if (access("/proc/net/
socksta
t6", F_OK) != 0)
+ if (access("/proc/net/
if_ine
t6", F_OK) != 0)
return false;
return true;