Home | History | Annotate | Download | only in extensions

Lines Matching refs:icmp

8 /* special hack for icmp-type 'any': 
10 * '-p icmp ' matches all icmp packets
11 * '-p icmp -m icmp' matches _only_ ICMP type 0 :(
12 * This is now fixed by initializing the field * to icmp type 0xFF
85 printf("Valid ICMP Types:");
105 "icmp match options:\n"
106 "[!] --icmp-type typename match icmp type\n"
107 "[!] --icmp-type type[/code] (or numeric type or type/code)\n");
112 {.name = "icmp-type", .id = O_ICMP_TYPE, .type = XTTYPE_STRING,
129 "Ambiguous ICMP type `%s':"
155 "Invalid ICMP type `%s'\n", buffer);
160 "Invalid ICMP code `%s'\n",
223 const struct ipt_icmp *icmp = (struct ipt_icmp *)match->data;
225 printf(" icmp");
226 print_icmptype(icmp->type, icmp->code[0], icmp->code[1],
227 icmp->invflags & IPT_ICMP_INV,
230 if (icmp->invflags & ~IPT_ICMP_INV)
232 icmp->invflags & ~IPT_ICMP_INV);
237 const struct ipt_icmp *icmp = (struct ipt_icmp *)match->data;
239 if (icmp->invflags & IPT_ICMP_INV)
243 if (icmp->type == 0xFF) {
244 printf(" --icmp-type any");
246 printf(" --icmp-type %u", icmp->type);
247 if (icmp->code[0] != 0 || icmp->code[1] != 0xFF)
248 printf("/%u", icmp->code[0]);
253 .name = "icmp",