icmp_type
if (icmph->icmp_type != ICMP_UNREACH)
if (icmph->icmp_type != ICMP_ECHOREPLY)
icmph->icmp_type = af == AF_INET ? ICMP_ECHO : ICMP6_ECHO_REQUEST;
pr_type((int)icp->icmp_type), li->li_name);
pr_type((int)icp->icmp_type), li->li_name);
pr_type((int)icp->icmp_type), li->li_name);
pr_type((int)icp->icmp_type), li->li_name);
icp->icmp_type = ICMP_ROUTERSOLICIT;
pr_type((int)icp->icmp_type), li->li_name);
rap->icmp_type = ICMP_ROUTERADVERT;
uchar_t icmp_type; /* type of message, see below */
pr_type((int)rap->icmp_type),
pr_type((int)icp->icmp_type), li->li_name);
switch (icp->icmp_type) {
pr_type((int)rap->icmp_type),
pr_type((int)rap->icmp_type),
pr_type((int)rap->icmp_type),
pr_type((int)rap->icmp_type),
pr_type((int)rap->icmp_type),
pr_type((int)rap->icmp_type),
pr_type((int)rap->icmp_type),
pr_type((int)icp->icmp_type),
pr_type((int)icp->icmp_type),
pr_type((int)icp->icmp_type),
pr_type((int)icp->icmp_type),
pr_type((int)icp->icmp_type),
u.ad.icmp_type = ICMP_ROUTERADVERT;
u.so.icmp_type = ICMP_ROUTERSOLICIT;
if (p->icmp.icmp_type == ICMP_ROUTERADVERT) {
if (p->icmp.icmp_type == ICMP_ROUTERADVERT) {
} else if (p->icmp.icmp_type == ICMP_ROUTERSOLICIT) {
switch (p->icmp.icmp_type) {
uint8_t icmp_type; /* type of message */
uint8_t icmp_type; /* type of message */
icp->icmp_type = send_reply ?
icp->icmp_type = send_reply ?
icp->icmp_type = send_reply ?
icp->icmp_type, pr_type(icp->icmp_type));
pr_type(int icmp_type)
if (ttab[i].type == icmp_type)
switch (icp->icmp_type) {
icmp->icmp_type, pt);
if (icmp->icmp_type == ICMP_UNREACH ||
icmp->icmp_type == ICMP_REDIRECT) {
} else if (icmp->icmp_type == ICMP_PARAMPROB) {
} else if (icmp->icmp_type == ICMP_ROUTERADVERT) {
switch (icmp->icmp_type) {
outicmp->icmp_type = ICMP_ECHO;
*type = icp->icmp_type;
outicmp->icmp_type = ICMP6_ECHO_REQUEST;
ic->icmp_type = i;
icmpname6(ic->icmp_type, ic->icmp_code));
icmpname(ic->icmp_type, ic->icmp_code));
if (ic->icmp_type == ICMP_UNREACH ||
ic->icmp_type == ICMP_SOURCEQUENCH ||
ic->icmp_type == ICMP_PARAMPROB ||
ic->icmp_type == ICMP_REDIRECT ||
ic->icmp_type == ICMP_TIMXCEED) {
icmp->icmp_type, icmp->icmp_code);
icmphp->icmp_type = ICMP_ECHOREPLY;
"received from %s\n", icmphp->icmp_type, inet_ntoa(ipsrc));
switch (icmphp->icmp_type) {
ip_fanout_send_icmp_v4(mblk_t *mp, uint_t icmp_type, uint_t icmp_code,
switch (icmp_type) {
ip_fanout_send_icmp_v6(mblk_t *mp, uint_t icmp_type, uint8_t icmp_code,
switch (icmp_type) {
if (icmp->icmp_type == ICMP_ROUTERADVERT ||
icmp->icmp_type == ICMP_ROUTERSOLICIT)
if ((!rev && (icmp->icmp_type == ictype)) ||
(rev && (icmpreplytype4[ictype] == icmp->icmp_type))) {
if (icmp->icmp_type != ICMP_ECHOREPLY)
if ((!rev && (icmp->icmp_type == ictype)) ||
(rev && (icmpreplytype6[ictype] == icmp->icmp_type))) {
if (icmp->icmp_type != ICMP6_ECHO_REPLY)
switch (icmp->icmp_type)
icmp->icmp_type = type & 0xff;
icmp->icmp_type = ICMP_UNREACH;
switch (icmp->icmp_type)
if (nat_icmpquerytype4(orgicmp->icmp_type)) {
if (nat_icmpquerytype4(icmp->icmp_type))
if (nat_icmpquerytype4(icmp->icmp_type)) {
switch (ic->icmp_type)
is->is_icmp.ici_type = ic->icmp_type;
is->is_icmp.ici_type = ic->icmp_type;
switch (ic->icmp_type)
is->is_icmp.ici_type = ic->icmp_type;
if ((ic->icmp_type == ICMP6_ECHO_REQUEST) ||
(ic->icmp_type == ICMP6_ECHO_REPLY)) {
uchar_t icmp_type; /* type of message, see below */