summaryrefslogtreecommitdiff
path: root/src/basic/socket-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-03-05 20:37:24 +0100
committerLennart Poettering <lennart@poettering.net>2021-03-05 20:51:43 +0100
commit83e03c4fc23dae0cbb3fd4e7c2f9ef533fc26160 (patch)
treec845bc8964a79188bbe4a97efb94368f7adb5960 /src/basic/socket-util.h
parent571ec995fe035557d4166ae310f627bdf307714b (diff)
downloadsystemd-83e03c4fc23dae0cbb3fd4e7c2f9ef533fc26160.tar.gz
socket-util: add helper for checking if IPv6 is enabled
Diffstat (limited to 'src/basic/socket-util.h')
-rw-r--r--src/basic/socket-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/socket-util.h b/src/basic/socket-util.h
index 2c98283cd3..507a599d7c 100644
--- a/src/basic/socket-util.h
+++ b/src/basic/socket-util.h
@@ -101,6 +101,7 @@ bool socket_address_equal(const SocketAddress *a, const SocketAddress *b) _pure_
const char* socket_address_get_path(const SocketAddress *a);
bool socket_ipv6_is_supported(void);
+bool socket_ipv6_is_enabled(void);
int sockaddr_port(const struct sockaddr *_sa, unsigned *port);
const union in_addr_union *sockaddr_in_addr(const struct sockaddr *sa);