ICMP_UNREACH
returnicmpdefault = (ICMP_UNREACH << 8) | ICMP_UNREACH_PORT;
(ICMP_UNREACH << 8) | ICMP_UNREACH_PORT;
{ "net-unr", ICMP_UNREACH, ICMP_UNREACH_NET },
{ "host-unr", ICMP_UNREACH, ICMP_UNREACH_HOST },
{ "proto-unr", ICMP_UNREACH, ICMP_UNREACH_PROTOCOL },
{ "port-unr", ICMP_UNREACH, ICMP_UNREACH_PORT },
{ "needfrag", ICMP_UNREACH, ICMP_UNREACH_NEEDFRAG },
{ "srcfail", ICMP_UNREACH, ICMP_UNREACH_SRCFAIL },
{ "net-unk", ICMP_UNREACH, ICMP_UNREACH_NET_UNKNOWN },
{ "host-unk", ICMP_UNREACH, ICMP_UNREACH_HOST_UNKNOWN },
{ "isolate", ICMP_UNREACH, ICMP_UNREACH_ISOLATED },
{ "net-prohib", ICMP_UNREACH, ICMP_UNREACH_NET_PROHIB },
{ "host-prohib", ICMP_UNREACH, ICMP_UNREACH_HOST_PROHIB },
{ "net-tos", ICMP_UNREACH, ICMP_UNREACH_TOSNET },
{ "host-tos", ICMP_UNREACH, ICMP_UNREACH_TOSHOST },
{ "filter-prohib", ICMP_UNREACH, ICMP_UNREACH_FILTER_PROHIB },
{ "host-preced", ICMP_UNREACH, ICMP_UNREACH_HOST_PRECEDENCE },
{ "cutoff-preced", ICMP_UNREACH, ICMP_UNREACH_PRECEDENCE_CUTOFF },
{ "unreach", ICMP_UNREACH },
case ICMP_UNREACH:
if (icmptype == ICMP_UNREACH ||
if (icmptype == ICMP_UNREACH ||
icmp_error(m0, ICMP_UNREACH, ICMP_UNREACH_NEEDFRAG, 0,
case ICMP_UNREACH:
case ICMP_UNREACH:
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_NEEDFRAG, 0,
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_ADMIN_PROHIBIT, 0, 0);
} else if (type == ICMP_UNREACH &&
case ICMP_UNREACH:
type = ICMP_UNREACH;
type = ICMP_UNREACH;
type = ICMP_UNREACH;
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_NET, dest, 0);
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, 0, 0);
type = ICMP_UNREACH;
type = ICMP_UNREACH;
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, 0, 0);
type = ICMP_UNREACH;
type = ICMP_UNREACH;
type = ICMP_UNREACH;
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PROTOCOL,
if (icmph->icmp_type != ICMP_UNREACH) {
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0);
icmp_error(n, ICMP_UNREACH, ICMP_UNREACH_ADMIN_PROHIBIT,
} else if (type == ICMP_UNREACH &&
SHOW2(ICMP_UNREACH, 11);
case ICMP_UNREACH:
type == ICMP_UNREACH || type == ICMP_ECHOREPLY) {