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
#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.
*/
#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)