Searched refs:ip_protocol_to_name (Results 1 – 6 of 6) 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()23 assert_se(!ip_protocol_to_name(i)); in test_int_fail()30 assert_se(streq(ip_protocol_to_name(ip_protocol_from_name(s)), s)); in test_str()31 assert_se(streq(ip_protocol_to_name(parse_ip_protocol(s)), s)); in test_str()
17 const char *ip_protocol_to_name(int id) { in ip_protocol_to_name() function63 if (!ip_protocol_to_name(i)) in parse_ip_protocol()71 ip_protocol_to_name(id) : NULL; in ip_protocol_to_tcp_udp()
4 const char *ip_protocol_to_name(int id);
152 return ip_protocol_to_name(i); in socket_protocol_to_string()
774 str = ip_protocol_to_name(s->socket_protocol); in socket_dump()
397 … JSON_BUILD_PAIR_STRING("IPProtocolString", ip_protocol_to_name(rule->ipproto)), in routing_policy_rule_build_json()