summaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorStéphan Kochen <stephan@kochen.nl>2012-06-17 17:26:34 +0200
committerFelix Fietkau <nbd@openwrt.org>2012-06-18 23:03:17 +0200
commit1ada8cef980df7871b12ed230c789eb28f6cb047 (patch)
tree5bfac8567e5e8c092e9fad98570f2bd35879cd23 /utils.h
parentfe8a6dd2991d54c3eb84cb12764c1316d19bac4e (diff)
downloadnetifd-1ada8cef980df7871b12ed230c789eb28f6cb047.tar.gz
Move IP address parsing functions to utils.
This is a patch series against the netifd repository. This first patch moves some previously static functions to utils, so that the follow up patch may use them from system-linux.c. Signed-off-by: Stéphan Kochen <stephan@kochen.nl>
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index 319e530..ec22313 100644
--- a/utils.h
+++ b/utils.h
@@ -110,4 +110,8 @@ static inline int fls(int x)
}
#endif
+unsigned int parse_netmask_string(const char *str, bool v6);
+bool split_netmask(char *str, unsigned int *netmask, bool v6);
+int parse_ip_and_netmask(int af, const char *str, void *addr, unsigned int *netmask);
+
#endif