Searched refs:ICMP_MINLEN (Results 1 - 14 of 14) sorted by relevance
/freebsd-12-stable/sys/netpfil/ipfw/nat64/ |
H A D | nat64clat.c | 177 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 D | nat64stl.c | 177 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 D | nat64_translate.c | 910 if (m->m_len < offset + ICMP_MINLEN) 911 m = m_pullup(m, offset + ICMP_MINLEN); 1039 hlen = offset + ICMP_MINLEN; 1040 if (m->m_pkthdr.len < hlen + sizeof(struct ip) + ICMP_MINLEN) { 1059 if (m->m_pkthdr.len < hlen + ICMP_MINLEN) { 1466 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { 1473 * We need at least ICMP_MINLEN bytes of original datagram payload 1474 * to generate ICMP message. It is nice that ICMP_MINLEN is equal 1491 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) 1492 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); [all...] |
H A D | nat64lsn.c | 425 off = (ip->ip_hl << 2) + ICMP_MINLEN; 449 if ((*mp)->m_pkthdr.len < off + sizeof(struct ip) + ICMP_MINLEN) 451 if ((*mp)->m_len < off + sizeof(struct ip) + ICMP_MINLEN) 452 *mp = m_pullup(*mp, off + sizeof(struct ip) + ICMP_MINLEN); 459 if ((*mp)->m_len < off + ICMP_MINLEN) 460 *mp = m_pullup(*mp, off + ICMP_MINLEN); 570 len += ICMP_MINLEN; /* Enough to get icmp_id */
|
/freebsd-12-stable/sbin/ping/ |
H A D | ping.c | 106 #define MASK_LEN (ICMP_MASKLEN - ICMP_MINLEN) 107 #define TS_LEN (ICMP_TSLEN - ICMP_MINLEN) 555 icmp_len = sizeof(struct ip) + ICMP_MINLEN + phdr_len; 563 datap = &outpack[ICMP_MINLEN + phdr_len + TIMEVAL_LEN]; 1045 memcpy(&icp, outpack, ICMP_MINLEN + phdr_len); 1069 (void *)&outpack[ICMP_MINLEN + phdr_len], 1073 memcpy(outpack, &icp, ICMP_MINLEN + phdr_len); 1075 cc = ICMP_MINLEN + phdr_len + datalen; 1152 if (cc < hlen + ICMP_MINLEN) { 1180 if ((size_t)(cc - ICMP_MINLEN [all...] |
/freebsd-12-stable/sbin/natd/ |
H A D | icmp.c | 83 icmpLen = ICMP_MINLEN + failBytes;
|
/freebsd-12-stable/sys/netinet/ |
H A D | ip_icmp.c | 220 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN) 224 if (n->m_len < oiphlen + ICMP_MINLEN) 311 if (MHLEN > sizeof(struct ip) + ICMP_MINLEN + icmplen) 321 sizeof(struct ip) - ICMP_MINLEN); 322 m_align(m, sizeof(struct ip) + ICMP_MINLEN + icmplen); 324 m->m_len = ICMP_MINLEN + icmplen; 423 if (icmplen < ICMP_MINLEN) {
|
H A D | ip_icmp.h | 135 #define ICMP_MINLEN 8 /* abs minimum */ macro
|
/freebsd-12-stable/contrib/tcpdump/ |
H A D | print-icmp.c | 100 #define ICMP_MINLEN 8 /* abs minimum */ macro
|
/freebsd-12-stable/contrib/traceroute/ |
H A D | traceroute.c | 1412 if (cc < hlen + ICMP_MINLEN) { 1460 for (i = 4; i <= cc - ICMP_MINLEN; i += sizeof(*lp))
|
/freebsd-12-stable/sbin/routed/ |
H A D | rdisc.c | 979 if (cc < hlen + ICMP_MINLEN)
|
/freebsd-12-stable/sys/netpfil/pf/ |
H A D | pf.c | 3495 m_copyback(m, off, ICMP_MINLEN, (caddr_t)pd->hdr.icmp); 4794 m_copyback(m, off, ICMP_MINLEN, 4846 ipoff2 = off + ICMP_MINLEN; 5055 m_copyback(m, off, ICMP_MINLEN, 5124 m_copyback(m, off, ICMP_MINLEN, 5148 if (!pf_pull_hdr(m, off2, &iih, ICMP_MINLEN, 5188 m_copyback(m, off, ICMP_MINLEN, (caddr_t)pd->hdr.icmp); 5190 m_copyback(m, off2, ICMP_MINLEN, (caddr_t)&iih); 5282 m_copyback(m, off, ICMP_MINLEN, 6181 if (!pf_pull_hdr(m, off, &ih, ICMP_MINLEN, [all...] |
/freebsd-12-stable/sys/netinet/libalias/ |
H A D | alias.c | 440 if (dlen < ICMP_MINLEN)
|
/freebsd-12-stable/sys/contrib/ipfilter/netinet/ |
H A D | fil.c | 1230 minicmpsz = ICMP_MINLEN;
|
Completed in 287 milliseconds