aboutsummaryrefslogtreecommitdiff
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
parentDon't configure Linux tun/tap txqueuelen setting if OpenVPN (diff)
downloadopenvpn-51e6e5b0f14db8bf5a6b6ebee26678fe8b623ad4.tar.xz
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)
{