mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-06-13 10:56:19 -04:00
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:
parent
9913894f53
commit
1406db559b
2 changed files with 8 additions and 5 deletions
7
socket.c
7
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.
|
||||
*/
|
||||
|
|
|
|||
6
socket.h
6
socket.h
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue