Move IP address parsing functions to utils.
[project/netifd.git] / utils.h
diff --git a/utils.h b/utils.h
index 319e530..ec22313 100644 (file)
--- 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