socket-util: add helper for checking if IPv6 is enabled

This commit is contained in:
Lennart Poettering
2021-03-05 20:51:43 +01:00
parent 571ec995fe
commit 83e03c4fc2
3 changed files with 33 additions and 0 deletions
+1
View File
@@ -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);