summaryrefslogtreecommitdiff
path: root/src/ip_bit.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ip_bit.h')
-rw-r--r--src/ip_bit.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/ip_bit.h b/src/ip_bit.h
new file mode 100644
index 0000000..49df160
--- /dev/null
+++ b/src/ip_bit.h
@@ -0,0 +1,15 @@
+#ifndef IP_BIT_H
+#define IP_BIT_H
+
+#include "stralloc.h"
+
+extern int bitstring_ip4(stralloc *,stralloc *);
+extern int ip4_bitstring(stralloc *,char *,unsigned int);
+extern unsigned int ip4_cscan(const char *,char [4]);
+extern void getnum(char *,int,unsigned long *);
+
+extern int bitstring_ip6(stralloc *,stralloc *);
+extern int ip6_bitstring(stralloc *,char *,unsigned int);
+extern unsigned int ip6_fmt_str(stralloc *,char *);
+
+#endif