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
This commit is contained in:
james 2006-11-08 01:05:19 +00:00
parent 9913894f53
commit 1406db559b
2 changed files with 8 additions and 5 deletions

View file

@ -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.
*/

View file

@ -454,11 +454,7 @@ int proto_remote (int proto, bool remote);
#define IPv4_TCP_HEADER_SIZE 40
#define IPv6_UDP_HEADER_SIZE 40
static const int proto_overhead[] = { /* indexed by PROTO_x */
IPv4_UDP_HEADER_SIZE,
IPv4_TCP_HEADER_SIZE,
IPv4_TCP_HEADER_SIZE
};
extern const int proto_overhead[];
static inline int
datagram_overhead (int proto)