summaryrefslogtreecommitdiff
path: root/src/shared/in-addr-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-13 13:44:30 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-13 13:55:15 +0100
commit76917807eb50ccde58901e8bec7ed3d408d1cc22 (patch)
treef4de29f757a3257dd2190a744ea373e87e81612d /src/shared/in-addr-util.h
parent6cb7fa17b3d89741a5fd3ac807775a3022c7d891 (diff)
shared: add minimal firewall manipulation helpers for establishing NAT rules, using libiptc
Diffstat (limited to 'src/shared/in-addr-util.h')
-rw-r--r--src/shared/in-addr-util.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/in-addr-util.h b/src/shared/in-addr-util.h
index 8da030ceb6..4cf4418b4b 100644
--- a/src/shared/in-addr-util.h
+++ b/src/shared/in-addr-util.h
@@ -39,7 +39,8 @@ 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);
int in_addr_from_string(int family, const char *s, union in_addr_union *ret);
int in_addr_from_string_auto(const char *s, int *family, union in_addr_union *ret);
-unsigned in_addr_netmask_to_prefixlen(const struct in_addr *addr);
+unsigned char in_addr_netmask_to_prefixlen(const struct in_addr *addr);
+struct in_addr* in_addr_prefixlen_to_netmask(struct in_addr *addr, unsigned char prefixlen);
int in_addr_default_prefixlen(const struct in_addr *addr, unsigned char *prefixlen);
int in_addr_default_subnet_mask(const struct in_addr *addr, struct in_addr *mask);