]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/ip-protocol-list.h
build(deps): bump pkg/debian from `f550017` to `50b20e2`
[thirdparty/systemd.git] / src / shared / ip-protocol-list.h
CommitLineData
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
6const char *ip_protocol_to_name(int id);
7int ip_protocol_from_name(const char *name);
1b2733b4
ZJS
8int parse_ip_protocol_full(const char *s, bool relaxed);
9static inline int parse_ip_protocol(const char *s) {
10 return parse_ip_protocol_full(s, false);
11}
159d68c3
JK
12
13const char *ip_protocol_to_tcp_udp(int id);
14int ip_protocol_from_tcp_udp(const char *ip_protocol);