Home | History | Annotate | Download | only in extensions

Lines Matching full:icmpv6_codes

18 static const struct icmpv6_names icmpv6_codes[] = {
63 for (i = 0; i < ARRAY_SIZE(icmpv6_codes); ++i) {
64 if (i && icmpv6_codes[i].type == icmpv6_codes[i-1].type) {
65 if (icmpv6_codes[i].code_min == icmpv6_codes[i-1].code_min
66 && (icmpv6_codes[i].code_max
67 == icmpv6_codes[i-1].code_max))
68 printf(" (%s)", icmpv6_codes[i].name);
70 printf("\n %s", icmpv6_codes[i].name);
73 printf("\n%s", icmpv6_codes[i].name);
96 static const unsigned int limit = ARRAY_SIZE(icmpv6_codes);
101 if (strncasecmp(icmpv6_codes[i].name, icmpv6type, strlen(icmpv6type))
108 icmpv6_codes[match].name,
109 icmpv6_codes[i].name);
115 *type = icmpv6_codes[match].type;
116 code[0] = icmpv6_codes[match].code_min;
117 code[1] = icmpv6_codes[match].code_max;
171 for (i = 0; i < ARRAY_SIZE(icmpv6_codes); ++i)
172 if (icmpv6_codes[i].type == type
173 && icmpv6_codes[i].code_min == code_min
174 && icmpv6_codes[i].code_max == code_max)
177 if (i != ARRAY_SIZE(icmpv6_codes)) {
180 icmpv6_codes[i].name);