Searched refs:icmp_codes (Results 1 – 3 of 3) sorted by relevance
/third_party/iptables/extensions/ |
D | libipt_icmp.c | 22 static const struct xt_icmp_names icmp_codes[] = { variable 84 xt_print_icmp_types(icmp_codes, ARRAY_SIZE(icmp_codes)); in icmp_help() 96 static const unsigned int limit = ARRAY_SIZE(icmp_codes); in parse_icmp() 101 if (strncasecmp(icmp_codes[i].name, icmptype, strlen(icmptype)) in parse_icmp() 108 icmp_codes[match].name, in parse_icmp() 109 icmp_codes[i].name); in parse_icmp() 115 *type = icmp_codes[match].type; in parse_icmp() 116 code[0] = icmp_codes[match].code_min; in parse_icmp() 117 code[1] = icmp_codes[match].code_max; in parse_icmp() 172 for (i = 0; i < ARRAY_SIZE(icmp_codes); ++i) in print_icmptype() [all …]
|
D | libxt_icmp.h | 7 static void xt_print_icmp_types(const struct xt_icmp_names *icmp_codes, in xt_print_icmp_types() argument 13 if (i && icmp_codes[i].type == icmp_codes[i-1].type) { in xt_print_icmp_types() 14 if (icmp_codes[i].code_min == icmp_codes[i-1].code_min in xt_print_icmp_types() 15 && (icmp_codes[i].code_max in xt_print_icmp_types() 16 == icmp_codes[i-1].code_max)) in xt_print_icmp_types() 17 printf(" (%s)", icmp_codes[i].name); in xt_print_icmp_types() 19 printf("\n %s", icmp_codes[i].name); in xt_print_icmp_types() 22 printf("\n%s", icmp_codes[i].name); in xt_print_icmp_types()
|
D | libebt_ip.c | 83 static const struct xt_icmp_names icmp_codes[] = { variable 159 xt_print_icmp_types(icmp_codes, ARRAY_SIZE(icmp_codes)); in brip_print_help() 416 ebt_parse_icmp(icmp_codes, ARRAY_SIZE(icmp_codes), optarg, in brip_parse() 527 ebt_print_icmp_type(icmp_codes, ARRAY_SIZE(icmp_codes), in brip_print()
|