summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-07 03:18:36 +0200
committerOndrej Filip <feela@network.cz>2000-06-07 03:18:36 +0200
commit3df89cefc19d08f621afac0ff485dba3591a39a0 (patch)
tree5ec67e0e68503c1b15cbb1c0136094033838e5c6 /lib
parentbd457b8d2162034e03ac2bb62484d8b238fd556f (diff)
downloadbird-3df89cefc19d08f621afac0ff485dba3591a39a0.tar
bird-3df89cefc19d08f621afac0ff485dba3591a39a0.zip
#define SIZE_OF_IP_HEADER
Diffstat (limited to 'lib')
-rw-r--r--lib/ipv4.h1
-rw-r--r--lib/ipv6.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/ipv4.h b/lib/ipv4.h
index 033116b..49aa13a 100644
--- a/lib/ipv4.h
+++ b/lib/ipv4.h
@@ -37,6 +37,7 @@ typedef u32 ip_addr;
#define BITS_PER_IP_ADDRESS 32
#define STD_ADDRESS_P_LENGTH 15
+#define SIZE_OF_IP_HEADER 24
#define IPA_NONE (_MI(0))
diff --git a/lib/ipv6.h b/lib/ipv6.h
index 90aedb9..2efd9e6 100644
--- a/lib/ipv6.h
+++ b/lib/ipv6.h
@@ -24,6 +24,7 @@ typedef struct ipv6_addr {
#define BITS_PER_IP_ADDRESS 128
#define STD_ADDRESS_P_LENGTH 39
+#define SIZE_OF_IP_HEADER 40
#define IPA_NONE _MI(0,0,0,0)