]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
da96ad5a YW |
2 | #pragma once |
3 | ||
1b2733b4 ZJS |
4 | #include <stdbool.h> |
5 | ||
da96ad5a YW |
6 | const char *ip_protocol_to_name(int id); |
7 | int ip_protocol_from_name(const char *name); | |
1b2733b4 ZJS |
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 | } | |
159d68c3 JK |
12 | |
13 | const char *ip_protocol_to_tcp_udp(int id); | |
14 | int ip_protocol_from_tcp_udp(const char *ip_protocol); |