diff options
Diffstat (limited to '')
-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) { |