summaryrefslogtreecommitdiff
path: root/lib/ip.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-06-17 14:26:30 +0000
committerMartin Mares <mj@ucw.cz>1998-06-17 14:26:30 +0000
commit6b5e06abb57528a091fd171dff379634fa7c4dad (patch)
tree2c001baa8a929302c7183fc3fcff5a8047fb45d5 /lib/ip.h
parent620a355a15d65a8a2980f98b2de3e7d04c3dab62 (diff)
Added function for converting of IP addresses to printable form.
Diffstat (limited to 'lib/ip.h')
-rw-r--r--lib/ip.h7
1 files changed, 7 insertions, 0 deletions
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