ICMP_MINLEN
icmpLen = ICMP_MINLEN + failBytes;
memcpy(&icp, outpack, ICMP_MINLEN + phdr_len);
(void *)&outpack[ICMP_MINLEN + phdr_len],
memcpy(outpack, &icp, ICMP_MINLEN + phdr_len);
cc = ICMP_MINLEN + phdr_len + datalen;
if (cc < hlen + ICMP_MINLEN) {
if ((size_t)(cc - ICMP_MINLEN - phdr_len) >=
dp = &outpack[ICMP_MINLEN + phdr_len];
cc -= ICMP_MINLEN + phdr_len;
cp = &outpack[ICMP_MINLEN];
icmp_len = sizeof(struct ip) + ICMP_MINLEN + phdr_len;
datap = &outpack[ICMP_MINLEN + phdr_len + TIMEVAL_LEN];
#define MASK_LEN (ICMP_MASKLEN - ICMP_MINLEN)
#define TS_LEN (ICMP_TSLEN - ICMP_MINLEN)
if (cc < hlen + ICMP_MINLEN)
if (n->m_len < sizeof(struct ip) + ICMP_MINLEN)
if (n->m_len < oiphlen + ICMP_MINLEN)
if (MHLEN > sizeof(struct ip) + ICMP_MINLEN + icmplen)
sizeof(struct ip) - ICMP_MINLEN);
m_align(m, sizeof(struct ip) + ICMP_MINLEN + icmplen);
m->m_len = ICMP_MINLEN + icmplen;
if (icmplen < ICMP_MINLEN) {
if (dlen < ICMP_MINLEN)
minicmpsz = ICMP_MINLEN;
hlen = offset + ICMP_MINLEN;
if (m->m_pkthdr.len < hlen + sizeof(struct ip) + ICMP_MINLEN) {
if (m->m_pkthdr.len < hlen + ICMP_MINLEN) {
if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
ICMP_MINLEN)
if (m->m_len < offset + ICMP_MINLEN)
m = m_pullup(m, offset + ICMP_MINLEN);
if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
off = (ip->ip_hl << 2) + ICMP_MINLEN;
if ((*mp)->m_pkthdr.len < off + sizeof(struct ip) + ICMP_MINLEN)
if ((*mp)->m_len < off + sizeof(struct ip) + ICMP_MINLEN)
*mp = m_pullup(*mp, off + sizeof(struct ip) + ICMP_MINLEN);
if ((*mp)->m_len < off + ICMP_MINLEN)
*mp = m_pullup(*mp, off + ICMP_MINLEN);
len += ICMP_MINLEN;
if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
if (!pf_pull_hdr(pd->m, pd->off, &pd->hdr.icmp, ICMP_MINLEN,
pd->hdrlen = ICMP_MINLEN;
m_copyback(pd->m, pd->off, ICMP_MINLEN, (caddr_t)&pd->hdr.icmp);
m_copyback(pd->m, pd->off, ICMP_MINLEN,
ipoff2 = pd->off + ICMP_MINLEN;
m_copyback(pd->m, pd->off, ICMP_MINLEN,
m_copyback(pd->m, pd->off, ICMP_MINLEN,
m_copyback(pd->m, pd->off, ICMP_MINLEN,
if (!pf_pull_hdr(pd->m, pd2.off, iih, ICMP_MINLEN,
m_copyback(pd2.m, pd2.off, ICMP_MINLEN,
m_copyback(pd->m, off, ICMP_MINLEN, (caddr_t)ih);
m_copyback(pd->m, pd->off, ICMP_MINLEN, (caddr_t)&pd->hdr.icmp);
m_copyback(pd->m, pd2.off, ICMP_MINLEN, (caddr_t)iih);
m_copyback(pd->m, pd->off, ICMP_MINLEN,
if (cc < hlen + ICMP_MINLEN) {
for (i = 4; i <= cc - ICMP_MINLEN; i += sizeof(*lp))