diff options
author | Stéphan Kochen <stephan@kochen.nl> | 2012-06-17 17:26:34 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-06-18 23:03:17 +0200 |
commit | 1ada8cef980df7871b12ed230c789eb28f6cb047 (patch) | |
tree | 5bfac8567e5e8c092e9fad98570f2bd35879cd23 /utils.h | |
parent | fe8a6dd2991d54c3eb84cb12764c1316d19bac4e (diff) |
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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |