ICMPERR_ICMPHLEN
oip = (ip_t *)((char *)fin->fin_dp + ICMPERR_ICMPHLEN);
frpr_short(fin, ICMPERR_ICMPHLEN);
if (frpr_pullup(fin, ICMPERR_ICMPHLEN) == -1)
icmp_pld_len = (fin->fin_dlen > ICMPERR_ICMPHLEN) ?
ICMPERR_ICMPHLEN : fin->fin_dlen;
mblk_icmp = (mblk_t *) allocb(ICMPERR_ICMPHLEN, BPRI_HI);
mblk_icmp->b_wptr += ICMPERR_ICMPHLEN;
fin->fin_ip->ip_len = htons(icmp_pld_len + ICMPERR_ICMPHLEN +
len = ICMPERR_ICMPHLEN;
if ((char *)oip + fin->fin_dlen - ICMPERR_ICMPHLEN > (char *)m->b_wptr)
if ((char *)oip + fin->fin_dlen - ICMPERR_ICMPHLEN >
if ((char *)oip6 + fin->fin_dlen - ICMPERR_ICMPHLEN > (char *)m->b_wptr)
if ((char *)oip6 + fin->fin_dlen - ICMPERR_ICMPHLEN >
if (fin->fin_plen < ICMPERR_ICMPHLEN + minlen)
oip = (ip_t *)((char *)ic + ICMPERR_ICMPHLEN);
len = fin->fin_dlen - ICMPERR_ICMPHLEN;
ofin.fin_plen = fin->fin_dlen - ICMPERR_ICMPHLEN;
oip6 = (ip6_t *)((char *)ic6 + ICMPERR_ICMPHLEN);
oip6->ip6_plen = fin->fin_dlen - ICMPERR_ICMPHLEN;