diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/in-addr-util.c | 4 | ||||
-rw-r--r-- | src/shared/in-addr-util.h | 4 | ||||
-rw-r--r-- | src/shared/missing.h | 4 |
3 files changed, 8 insertions, 4 deletions
diff --git a/src/shared/in-addr-util.c b/src/shared/in-addr-util.c index ff008bd26f..e9a99177fc 100644 --- a/src/shared/in-addr-util.c +++ b/src/shared/in-addr-util.c @@ -23,7 +23,7 @@ #include "in-addr-util.h" -int in_addr_null(int family, union in_addr_union *u) { +int in_addr_null(int family, const union in_addr_union *u) { assert(u); if (family == AF_INET) @@ -40,7 +40,7 @@ int in_addr_null(int family, union in_addr_union *u) { } -int in_addr_equal(int family, union in_addr_union *a, union in_addr_union *b) { +int in_addr_equal(int family, const union in_addr_union *a, const union in_addr_union *b) { assert(a); assert(b); diff --git a/src/shared/in-addr-util.h b/src/shared/in-addr-util.h index 98de032d95..cff2c321ed 100644 --- a/src/shared/in-addr-util.h +++ b/src/shared/in-addr-util.h @@ -31,8 +31,8 @@ union in_addr_union { struct in6_addr in6; }; -int in_addr_null(int family, union in_addr_union *u); -int in_addr_equal(int family, union in_addr_union *a, union in_addr_union *b); +int in_addr_null(int family, const union in_addr_union *u); +int in_addr_equal(int family, const union in_addr_union *a, const union in_addr_union *b); int in_addr_prefix_intersect(int family, const union in_addr_union *a, unsigned aprefixlen, const union in_addr_union *b, unsigned bprefixlen); int in_addr_prefix_next(int family, union in_addr_union *u, unsigned prefixlen); int in_addr_to_string(int family, const union in_addr_union *u, char **ret); diff --git a/src/shared/missing.h b/src/shared/missing.h index 2985285409..f4378a36b1 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -499,3 +499,7 @@ static inline int setns(int fd, int nstype) { #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1) #endif + +#ifndef IPV6_UNICAST_IF +#define IPV6_UNICAST_IF 76 +#endif |