diff options
author | James Yonan <james@openvpn.net> | 2010-09-01 06:04:29 +0000 |
---|---|---|
committer | James Yonan <james@openvpn.net> | 2010-09-01 06:04:29 +0000 |
commit | 51e6e5b0f14db8bf5a6b6ebee26678fe8b623ad4 (patch) | |
tree | 6dbf2460c7ee52862759bc1e9db1d154fb1a732a /socket.h | |
parent | Don't configure Linux tun/tap txqueuelen setting if OpenVPN (diff) | |
download | openvpn-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |