summaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2011-08-18 10:16:21 +0000
committerDavid Sommerseth <davids@redhat.com>2011-08-24 14:52:47 +0200
commit834eba7597e2582c44f69e03a762b838308c8df0 (patch)
tree2fe7d0e4c81d69605cb8c2031860ac7513e38c3b /socket.h
parent98054a0744d1e228341cf2d8e1b1f9f2650c2775 (diff)
downloadopenvpn-834eba7597e2582c44f69e03a762b838308c8df0.tar.gz
openvpn-834eba7597e2582c44f69e03a762b838308c8df0.tar.xz
openvpn-834eba7597e2582c44f69e03a762b838308c8df0.zip
remove function is_proto_tcp()
The implementation of is_proto_tcp() was invalid since the IPv6 stuff got merged into master. There's proto_is_tcp() that does the same job right. Remove is_proto_tcp() and make its only caller use proto_is_tcp() instead. Signed-off-by: Heiko Hund <heiko.hund@sophos.com> Acked-By: Gert Doering <gert@greenie.muc.de> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'socket.h')
-rw-r--r--socket.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/socket.h b/socket.h
index 33da53c..6336f92 100644
--- a/socket.h
+++ b/socket.h
@@ -563,12 +563,6 @@ 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)
{