Searched refs:ip_protocol_from_name (Results 1 – 3 of 3) sorted by relevance
14 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()
28 int ip_protocol_from_name(const char *name) { in ip_protocol_from_name() function55 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()
5 int ip_protocol_from_name(const char *name);