aboutsummaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/socket.c b/socket.c
index a372295..70d8ffd 100644
--- a/socket.c
+++ b/socket.c
@@ -41,6 +41,13 @@
#include "memdbg.h"
+const int proto_overhead[] = { /* indexed by PROTO_x */
+ IPv4_UDP_HEADER_SIZE,
+ IPv4_TCP_HEADER_SIZE,
+ IPv4_TCP_HEADER_SIZE,
+ IPv4_TCP_HEADER_SIZE
+};
+
/*
* Functions related to the translation of DNS names to IP addresses.
*/