summaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorJuanJo Ciarlante <jjo@google.com>2009-09-15 16:48:46 +0200
committerJuanJo Ciarlante <juanjosec@gmail.com>2011-03-25 13:30:29 +0100
commit51afc8b8865fe09f76b81ae341e693a5b16199f2 (patch)
tree7a7dca20b2c3bd00bf2ca8ab1bddd6db32297488 /socket.h
parentd9c04efcdffc610163dcca988578cfe677c3af15 (diff)
downloadopenvpn-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.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/socket.h b/socket.h
index ba8cd6e..718805a 100644
--- a/socket.h
+++ b/socket.h
@@ -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
};