diff options
author | lloyd <[email protected]> | 2007-10-16 16:15:19 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2007-10-16 16:15:19 +0000 |
commit | 19a5c9f4d223314dc5eb6c971f332171f3a85623 (patch) | |
tree | 8e7ec3fb9225f9f82f9769688e6ecaf8bbc8975c /include/parsing.h | |
parent | 77afd52c616f50f5213b24f9b2df0d27e61c95f2 (diff) |
Add functions that can convert between binary IPv4 addresses and standard
decimal-dotted string notation.
Diffstat (limited to 'include/parsing.h')
-rw-r--r-- | include/parsing.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/parsing.h b/include/parsing.h index ce36365fe..dcfde9568 100644 --- a/include/parsing.h +++ b/include/parsing.h @@ -27,6 +27,12 @@ u32bit parse_expr(const std::string&); std::string to_string(u64bit, u32bit = 0); u32bit to_u32bit(const std::string&); +/************************************************* +* String/Network Address Conversions * +*************************************************/ +u32bit string_to_ipv4(const std::string&); +std::string ipv4_to_string(u32bit); + } #endif |