Home
last modified time | relevance | path

Searched refs:ip_protocol_from_name (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/test/
Dtest-ip-protocol-list.c14 assert_se(ip_protocol_from_name(ip_protocol_to_name(i)) == i); in test_int()
17 assert_se(ip_protocol_from_name(ip_protocol_to_name(parse_ip_protocol(str))) == i); in test_int()
30 assert_se(streq(ip_protocol_to_name(ip_protocol_from_name(s)), s)); in test_str()
35 assert_se(ip_protocol_from_name(s) == -EINVAL); in test_str_fail()
/systemd-251/src/shared/
Dip-protocol-list.c28 int ip_protocol_from_name(const char *name) { in ip_protocol_from_name() function
55 i = ip_protocol_from_name(ascii_strlower(str)); in parse_ip_protocol()
75 int id = ip_protocol_from_name(ip_protocol); in ip_protocol_from_tcp_udp()
Dip-protocol-list.h5 int ip_protocol_from_name(const char *name);