summaryrefslogtreecommitdiff
path: root/src/socket-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-21 23:41:25 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-21 23:41:25 +0200
commitc0120d992ce5ab004d9be5ff6ca15e5fe17f9884 (patch)
tree77293c20ec123d0e3f56ad21a2e08d2b0775106a /src/socket-util.h
parent88ce42f6944774788f610598fccdc6bab4283497 (diff)
socket: fix parsing of bind_ipv6_only
Diffstat (limited to 'src/socket-util.h')
-rw-r--r--src/socket-util.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/socket-util.h b/src/socket-util.h
index 14192167aa..993972c458 100644
--- a/src/socket-util.h
+++ b/src/socket-util.h
@@ -50,7 +50,9 @@ typedef struct SocketAddress {
typedef enum SocketAddressBindIPv6Only {
SOCKET_ADDRESS_DEFAULT,
SOCKET_ADDRESS_BOTH,
- SOCKET_ADDRESS_IPV6_ONLY
+ SOCKET_ADDRESS_IPV6_ONLY,
+ _SOCKET_ADDRESS_BIND_IPV6_ONLY_MAX,
+ _SOCKET_ADDRESS_BIND_IPV6_ONLY_INVALID = -1
} SocketAddressBindIPv6Only;
#define socket_address_family(a) ((a)->sockaddr.sa.sa_family)
@@ -76,4 +78,7 @@ bool socket_address_equal(const SocketAddress *a, const SocketAddress *b);
bool socket_address_needs_mount(const SocketAddress *a, const char *prefix);
+const char* socket_address_bind_ipv6_only_to_string(SocketAddressBindIPv6Only b);
+SocketAddressBindIPv6Only socket_address_bind_ipv6_only_from_string(const char *s);
+
#endif