diff options
author | JuanJo Ciarlante <jjo@google.com> | 2009-09-15 16:48:46 +0200 |
---|---|---|
committer | JuanJo Ciarlante <juanjosec@gmail.com> | 2011-03-25 13:30:29 +0100 |
commit | 51afc8b8865fe09f76b81ae341e693a5b16199f2 (patch) | |
tree | 7a7dca20b2c3bd00bf2ca8ab1bddd6db32297488 /socket.h | |
parent | d9c04efcdffc610163dcca988578cfe677c3af15 (diff) | |
download | openvpn-51afc8b8865fe09f76b81ae341e693a5b16199f2.tar.gz openvpn-51afc8b8865fe09f76b81ae341e693a5b16199f2.tar.xz openvpn-51afc8b8865fe09f76b81ae341e693a5b16199f2.zip |
* support --disable-ipv6 build properly:
- tests now are pass (and fail) properly for ipv6/4 builds
* more GNU indenting
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -491,19 +491,6 @@ in_addr_t getaddr_multi (unsigned int flags, * Transport protocol naming and other details. */ -#if 0 /* PRE UDPv6/TCPv6 code */ -#define PROTO_NONE 0 /* catch for uninitialized */ -#define PROTO_UDPv4 1 -#define PROTO_TCPv4_SERVER 2 -#define PROTO_TCPv4_CLIENT 3 -#define PROTO_TCPv4 4 -#define PROTO_UDPv6 5 -#define PROTO_TCPv6_SERVER 6 -#define PROTO_TCPv6_CLIENT 7 -#define PROTO_TCPv6 8 -#define PROTO_N 9 -#endif /* if 0 */ - /* * Use enum's instead of #define to allow for easier * optional proto support @@ -514,10 +501,12 @@ enum proto_num { PROTO_TCPv4_SERVER, PROTO_TCPv4_CLIENT, PROTO_TCPv4, +#ifdef USE_PF_INET6 PROTO_UDPv6, PROTO_TCPv6_SERVER, PROTO_TCPv6_CLIENT, PROTO_TCPv6, +#endif PROTO_N }; |