From 1406db559be5030c7c4cb8ee2a424e61faafd130 Mon Sep 17 00:00:00 2001 From: james Date: Wed, 8 Nov 2006 01:05:19 +0000 Subject: PROTO_TCPv4 is never used as an index into proto_overhead, however this should be fixed. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@1434 e7ae566f-a301-0410-adde-c780ea21d3b5 --- socket.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'socket.c') 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. */ -- cgit