diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-03-05 20:37:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-03-05 20:51:43 +0100 |
commit | 83e03c4fc23dae0cbb3fd4e7c2f9ef533fc26160 (patch) | |
tree | c845bc8964a79188bbe4a97efb94368f7adb5960 /src/basic/socket-util.h | |
parent | 571ec995fe035557d4166ae310f627bdf307714b (diff) | |
download | systemd-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.h | 1 |
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); |