ICMP_MINLEN
iph = (struct ip *)((char *)icmph + ICMP_MINLEN);
if (rcvd < 2 * sizeof (struct ip) + ICMP_MINLEN +
if (rcvd < sizeof (struct ip) + ICMP_MINLEN)
((ICMP_MINLEN + 2 * sizeof (uint32_t)) / sizeof (uint32_t))
if (len < iphlen + ICMP_MINLEN) {
if (len < ICMP_MINLEN) {
packetlen = ICMP_MINLEN;
if (cc < hlen + ICMP_MINLEN) {
ICMP_MINLEN + rap->icmp_num_addrs * rap->icmp_wpa * 4) {
ICMP_MINLEN +
ALIGN(buf + hlen + ICMP_MINLEN +
if (cc < ICMP_MINLEN) {
ICMP_MINLEN);
if (cc < hlen + ICMP_MINLEN)
cc = datalen + ICMP_MINLEN;
tp = (struct timeval *)&out_pkt[ICMP_MINLEN];
datap = &out_pkt[ICMP_MINLEN + sizeof (struct timeval)];
ICMP_MINLEN))) {
if ((cc < sizeof (struct ip)) || (cc < hlen + ICMP_MINLEN)) {
cc_left = cc - ICMP_MINLEN;
ICMP_MINLEN + icmp->icmp_ip.ip_hl * 4);
num_rtr_addrs = MIN((ilen - ICMP_MINLEN) / 8,
icmp_ra_len = ICMP_MINLEN + num_rtr_addrs *
icmp_ra_len = ICMP_MINLEN +
if (ilen < ICMP_MINLEN)
pr->icmp_minlen = ICMP_MINLEN;
outdata = (struct outdata *)(outp + ICMP_MINLEN);
if (cc < hlen + ICMP_MINLEN) {
cc -= ICMP_MINLEN;
if (ICMP_MINLEN <= cc &&
if (icmp_len < ICMP_MINLEN) {
if ((uchar_t *)icmp + ICMP_MINLEN > mp->b_wptr)
minicmpsz = ICMP_MINLEN;
#ifndef ICMP_MINLEN