aboutsummaryrefslogtreecommitdiffstats
path: root/include/parsing.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-10-16 16:15:19 +0000
committerlloyd <[email protected]>2007-10-16 16:15:19 +0000
commit19a5c9f4d223314dc5eb6c971f332171f3a85623 (patch)
tree8e7ec3fb9225f9f82f9769688e6ecaf8bbc8975c /include/parsing.h
parent77afd52c616f50f5213b24f9b2df0d27e61c95f2 (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.h6
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