summaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
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)
{