summaryrefslogtreecommitdiff
path: root/src/shared/socket-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-18 18:17:39 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-18 18:28:29 +0200
commit059f6c42b744a18d0deec0c79a9e0730ec6c1c76 (patch)
treee08e9a8dd62fc6e2d57d2f6a1dc397c19a4b7735 /src/shared/socket-util.h
parent5d3de3fe9cc452f1bfe3c2dcafecbd7f904da4dc (diff)
networkd: add a number of calls to manipulate in_addr_union structs
Diffstat (limited to 'src/shared/socket-util.h')
-rw-r--r--src/shared/socket-util.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h
index d125fca83f..25c4a7e4f9 100644
--- a/src/shared/socket-util.h
+++ b/src/shared/socket-util.h
@@ -111,3 +111,10 @@ SocketAddressBindIPv6Only socket_address_bind_ipv6_only_from_string(const char *
int netlink_family_to_string_alloc(int b, char **s);
int netlink_family_from_string(const char *s) _pure_;
+
+int in_addr_null(unsigned family, union in_addr_union *u);
+int in_addr_equal(unsigned family, union in_addr_union *a, union in_addr_union *b);
+int in_addr_prefix_intersect(unsigned family, const union in_addr_union *a, unsigned aprefixlen, const union in_addr_union *b, unsigned bprefixlen);
+int in_addr_prefix_next(unsigned family, union in_addr_union *u, unsigned prefixlen);
+int in_addr_to_string(unsigned family, const union in_addr_union *u, char **ret);
+int in_addr_from_string(unsigned family, const char *s, union in_addr_union *ret);