ICMP_MAXTYPE
u_long icps_outhist[ICMP_MAXTYPE + 1];
u_long icps_inhist[ICMP_MAXTYPE + 1];
KASSERT((u_int)type <= ICMP_MAXTYPE, ("%s: illegal ICMP type",
if (icp->icmp_type > ICMP_MAXTYPE)
int icmptoicmp6types[ICMP_MAXTYPE+1] = {
int icmpreplytype4[ICMP_MAXTYPE + 1];
for (i = 0; i <= ICMP_MAXTYPE; i++)
extern int icmptoicmp6types[ICMP_MAXTYPE+1];
extern int icmpreplytype4[ICMP_MAXTYPE + 1];
if ((type < 0) || (type >= ICMP_MAXTYPE))
return (type <= ICMP_MAXTYPE && (cmd->d[0] & (1<<type)) );
return (type <= ICMP_MAXTYPE && (TT & (1<<type)) );
if ((rule->return_icmp >> 8) > ICMP_MAXTYPE)
if (pcr->rule.return_icmp >> 8 > ICMP_MAXTYPE) {
static const char *icmpnames[ICMP_MAXTYPE + 1] = {
for (first = 1, i = 0; i < ICMP_MAXTYPE + 1; i++) {
for (first = 1, i = 0; i < ICMP_MAXTYPE + 1; i++) {
for (i = 0; i <= ICMP_MAXTYPE; i++) {
for (i = 0; i <= ICMP_MAXTYPE; i++) {
for (i = totalin = totalout = 0; i <= ICMP_MAXTYPE; i++) {