summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ip.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ip.h b/lib/ip.h
index 945f2893..f3b1cc31 100644
--- a/lib/ip.h
+++ b/lib/ip.h
@@ -48,6 +48,13 @@
#define UDP_HEADER_LENGTH 8
+/* IANA Address Family Numbers */
+/* https://www.iana.org/assignments/address-family-numbers/address-family-numbers.xhtml */
+/* Would use AF_ prefix, but that collides with POSIX address family numbers */
+#define AFI_IPV4 1
+#define AFI_IPV6 2
+
+
#ifdef DEBUGGING
typedef struct ip4_addr {