src/shared/ip-protocol-list.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | #pragma once |
| 3 | |
| 4 | #include "shared-forward.h" |
| 5 | |
| 6 | const char* ip_protocol_to_name(int id); |
| 7 | int ip_protocol_from_name(const char *name); |
| 8 | int parse_ip_protocol_full(const char *s, bool relaxed); |
| 9 | static inline int parse_ip_protocol(const char *s) { |
| 10 | return parse_ip_protocol_full(s, false); |
| 11 | } |
| 12 | |
| 13 | const char* ip_protocol_to_tcp_udp(int id); |
| 14 | int ip_protocol_from_tcp_udp(const char *ip_protocol); |