From 6b5e06abb57528a091fd171dff379634fa7c4dad Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 17 Jun 1998 14:26:30 +0000 Subject: Added function for converting of IP addresses to printable form. --- lib/ip.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/ip.h') diff --git a/lib/ip.h b/lib/ip.h index 5bf56fc3..2e9c8a5d 100644 --- a/lib/ip.h +++ b/lib/ip.h @@ -43,4 +43,11 @@ #define ip_is_prefix(a,l) (!ipa_nonzero(ipa_and(a, ipa_not(ipa_mkmask(l))))) +/* + * Conversions between internal and string representation + */ + +char *ip_ntop(ip_addr a, char *); +char *ip_ntox(ip_addr a, char *); + #endif -- cgit v1.2.3