Searched refs:ICMP_MINLEN (Results 1 - 14 of 14) sorted by relevance

/freebsd-13-stable/sys/netpfil/ipfw/nat64/
H A Dnat64clat.c177 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
181 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
182 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
H A Dnat64stl.c177 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
181 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
182 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
H A Dnat64_translate.c916 if (m->m_len < offset + ICMP_MINLEN)
917 m = m_pullup(m, offset + ICMP_MINLEN);
1045 hlen = offset + ICMP_MINLEN;
1046 if (m->m_pkthdr.len < hlen + sizeof(struct ip) + ICMP_MINLEN) {
1065 if (m->m_pkthdr.len < hlen + ICMP_MINLEN) {
1478 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) {
1485 * We need at least ICMP_MINLEN bytes of original datagram payload
1486 * to generate ICMP message. It is nice that ICMP_MINLEN is equal
1503 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN)
1504 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN);
[all...]
H A Dnat64lsn.c424 off = (ip->ip_hl << 2) + ICMP_MINLEN;
448 if ((*mp)->m_pkthdr.len < off + sizeof(struct ip) + ICMP_MINLEN)
450 if ((*mp)->m_len < off + sizeof(struct ip) + ICMP_MINLEN)
451 *mp = m_pullup(*mp, off + sizeof(struct ip) + ICMP_MINLEN);
458 if ((*mp)->m_len < off + ICMP_MINLEN)
459 *mp = m_pullup(*mp, off + ICMP_MINLEN);
569 len += ICMP_MINLEN; /* Enough to get icmp_id */
/freebsd-13-stable/sbin/ping/
H A Dping.c109 #define MASK_LEN (ICMP_MASKLEN - ICMP_MINLEN)
110 #define TS_LEN (ICMP_TSLEN - ICMP_MINLEN)
578 icmp_len = sizeof(struct ip) + ICMP_MINLEN + phdr_len;
586 datap = &outpack[ICMP_MINLEN + phdr_len + TIMEVAL_LEN];
1058 memcpy(&icp, outpack, ICMP_MINLEN + phdr_len);
1082 (void *)&outpack[ICMP_MINLEN + phdr_len],
1086 memcpy(outpack, &icp, ICMP_MINLEN + phdr_len);
1088 cc = ICMP_MINLEN + phdr_len + datalen;
1165 if (cc < hlen + ICMP_MINLEN) {
1193 if ((size_t)(cc - ICMP_MINLEN
[all...]
/freebsd-13-stable/sbin/natd/
H A Dicmp.c83 icmpLen = ICMP_MINLEN + failBytes;
/freebsd-13-stable/sys/netinet/
H A Dip_icmp.c229 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN)
233 if (n->m_len < oiphlen + ICMP_MINLEN)
321 if (MHLEN > sizeof(struct ip) + ICMP_MINLEN + icmplen)
331 sizeof(struct ip) - ICMP_MINLEN);
332 m_align(m, sizeof(struct ip) + ICMP_MINLEN + icmplen);
334 m->m_len = ICMP_MINLEN + icmplen;
434 if (icmplen < ICMP_MINLEN) {
H A Dip_icmp.h135 #define ICMP_MINLEN 8 /* abs minimum */ macro
/freebsd-13-stable/contrib/tcpdump/
H A Dprint-icmp.c100 #define ICMP_MINLEN 8 /* abs minimum */ macro
/freebsd-13-stable/sys/netpfil/pf/
H A Dpf.c3494 m_copyback(m, off, ICMP_MINLEN, (caddr_t)pd->hdr.icmp);
4790 m_copyback(m, off, ICMP_MINLEN,
4842 ipoff2 = off + ICMP_MINLEN;
5051 m_copyback(m, off, ICMP_MINLEN,
5120 m_copyback(m, off, ICMP_MINLEN,
5144 if (!pf_pull_hdr(m, off2, &iih, ICMP_MINLEN,
5184 m_copyback(m, off, ICMP_MINLEN, (caddr_t)pd->hdr.icmp);
5186 m_copyback(m, off2, ICMP_MINLEN, (caddr_t)&iih);
5278 m_copyback(m, off, ICMP_MINLEN,
6097 if (!pf_pull_hdr(m, off, &ih, ICMP_MINLEN,
[all...]
/freebsd-13-stable/contrib/traceroute/
H A Dtraceroute.c1412 if (cc < hlen + ICMP_MINLEN) {
1460 for (i = 4; i <= cc - ICMP_MINLEN; i += sizeof(*lp))
/freebsd-13-stable/sbin/routed/
H A Drdisc.c972 if (cc < hlen + ICMP_MINLEN)
/freebsd-13-stable/sys/netinet/libalias/
H A Dalias.c441 if (dlen < ICMP_MINLEN)
/freebsd-13-stable/sys/contrib/ipfilter/netinet/
H A Dfil.c1230 minicmpsz = ICMP_MINLEN;

Completed in 291 milliseconds