summaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorJames Yonan <james@openvpn.net>2010-09-01 06:04:29 +0000
committerJames Yonan <james@openvpn.net>2010-09-01 06:04:29 +0000
commit51e6e5b0f14db8bf5a6b6ebee26678fe8b623ad4 (patch)
tree6dbf2460c7ee52862759bc1e9db1d154fb1a732a /socket.h
parent1d76ecbcd03de5bbf97f9969f15debddd0387b87 (diff)
downloadopenvpn-51e6e5b0f14db8bf5a6b6ebee26678fe8b623ad4.tar.gz
openvpn-51e6e5b0f14db8bf5a6b6ebee26678fe8b623ad4.tar.xz
openvpn-51e6e5b0f14db8bf5a6b6ebee26678fe8b623ad4.zip
Added --proto-force directive.
Version 2.1.3a git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6424 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/socket.h b/socket.h
index cd24011..eef98d1 100644
--- a/socket.h
+++ b/socket.h
@@ -509,6 +509,12 @@ legal_ipv4_port (int port)
return port > 0 && port < 65536;
}
+static inline int
+is_proto_tcp(const int p)
+{
+ return p > 0; /* depends on the definition of PROTO_x */
+}
+
static inline bool
link_socket_proto_connection_oriented (int proto)
{