| /freebsd-13-stable/sbin/ping/ |
| HD | ping.c | 107 #define MASK_LEN (ICMP_MASKLEN - ICMP_MINLEN) 108 #define TS_LEN (ICMP_TSLEN - ICMP_MINLEN) 579 icmp_len = sizeof(struct ip) + ICMP_MINLEN + phdr_len; in ping() 587 datap = &outpack[ICMP_MINLEN + phdr_len + TIMEVAL_LEN]; in ping() 1062 memcpy(&icp, outpack, ICMP_MINLEN + phdr_len); in pinger() 1086 (void *)&outpack[ICMP_MINLEN + phdr_len], in pinger() 1090 memcpy(outpack, &icp, ICMP_MINLEN + phdr_len); in pinger() 1092 cc = ICMP_MINLEN + phdr_len + datalen; in pinger() 1183 if (cc < hlen + ICMP_MINLEN) { in pr_pack() 1212 if ((size_t)(cc - ICMP_MINLEN - phdr_len) >= in pr_pack() [all …]
|
| /freebsd-13-stable/sys/netpfil/ipfw/nat64/ |
| HD | nat64clat.c | 175 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { in nat64clat_handle_icmp6() 179 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) in nat64clat_handle_icmp6() 180 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); in nat64clat_handle_icmp6()
|
| HD | nat64stl.c | 175 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { in nat64stl_handle_icmp6() 179 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) in nat64stl_handle_icmp6() 180 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); in nat64stl_handle_icmp6()
|
| HD | nat64_translate.c | 910 if (m->m_len < offset + ICMP_MINLEN) in nat64_icmp_translate() 911 m = m_pullup(m, offset + ICMP_MINLEN); in nat64_icmp_translate() 1039 hlen = offset + ICMP_MINLEN; in nat64_icmp_translate() 1040 if (m->m_pkthdr.len < hlen + sizeof(struct ip) + ICMP_MINLEN) { in nat64_icmp_translate() 1059 if (m->m_pkthdr.len < hlen + ICMP_MINLEN) { in nat64_icmp_translate() 1467 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { in nat64_handle_icmp6() 1492 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) in nat64_handle_icmp6() 1493 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); in nat64_handle_icmp6() 1506 ICMP_MINLEN) in nat64_handle_icmp6()
|
| HD | nat64lsn.c | 422 off = (ip->ip_hl << 2) + ICMP_MINLEN; in inspect_icmp_mbuf() 446 if ((*mp)->m_pkthdr.len < off + sizeof(struct ip) + ICMP_MINLEN) in inspect_icmp_mbuf() 448 if ((*mp)->m_len < off + sizeof(struct ip) + ICMP_MINLEN) in inspect_icmp_mbuf() 449 *mp = m_pullup(*mp, off + sizeof(struct ip) + ICMP_MINLEN); in inspect_icmp_mbuf() 456 if ((*mp)->m_len < off + ICMP_MINLEN) in inspect_icmp_mbuf() 457 *mp = m_pullup(*mp, off + ICMP_MINLEN); in inspect_icmp_mbuf() 567 len += ICMP_MINLEN; /* Enough to get icmp_id */ in nat64lsn_reassemble4()
|
| /freebsd-13-stable/sys/netinet/ |
| HD | ip_icmp.c | 238 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN) in icmp_error() 242 if (n->m_len < oiphlen + ICMP_MINLEN) in icmp_error() 330 if (MHLEN > sizeof(struct ip) + ICMP_MINLEN + icmplen) in icmp_error() 340 sizeof(struct ip) - ICMP_MINLEN); in icmp_error() 341 m_align(m, sizeof(struct ip) + ICMP_MINLEN + icmplen); in icmp_error() 343 m->m_len = ICMP_MINLEN + icmplen; in icmp_error() 443 if (icmplen < ICMP_MINLEN) { in icmp_input()
|
| HD | ip_icmp.h | 134 #define ICMP_MINLEN 8 /* abs minimum */ macro
|
| /freebsd-13-stable/sbin/natd/ |
| HD | icmp.c | 80 icmpLen = ICMP_MINLEN + failBytes; in SendNeedFragIcmp()
|
| /freebsd-13-stable/contrib/tcpdump/ |
| HD | print-icmp.c | 95 #define ICMP_MINLEN 8 /* abs minimum */ macro
|
| /freebsd-13-stable/contrib/traceroute/ |
| HD | traceroute.c | 1412 if (cc < hlen + ICMP_MINLEN) { in packet_ok() 1460 for (i = 4; i <= cc - ICMP_MINLEN; i += sizeof(*lp)) in packet_ok()
|
| /freebsd-13-stable/sys/netpfil/pf/ |
| HD | pf.c | 580 m_copyback(m, off, ICMP_MINLEN, (caddr_t)ih); in pf_packet_rework_nat() 4289 m_copyback(m, off, ICMP_MINLEN, (caddr_t)&pd->hdr.icmp); in pf_test_rule() 6231 m_copyback(m, off, ICMP_MINLEN, in pf_test_state_icmp() 6284 ipoff2 = off + ICMP_MINLEN; in pf_test_state_icmp() 6493 m_copyback(m, off, ICMP_MINLEN, in pf_test_state_icmp() 6562 m_copyback(m, off, ICMP_MINLEN, in pf_test_state_icmp() 6586 if (!pf_pull_hdr(m, off2, iih, ICMP_MINLEN, in pf_test_state_icmp() 6632 m_copyback(m, off, ICMP_MINLEN, (caddr_t)&pd->hdr.icmp); in pf_test_state_icmp() 6634 m_copyback(m, off2, ICMP_MINLEN, (caddr_t)iih); in pf_test_state_icmp() 6742 m_copyback(m, off, ICMP_MINLEN, in pf_test_state_icmp() [all …]
|
| /freebsd-13-stable/sbin/routed/ |
| HD | rdisc.c | 967 if (cc < hlen + ICMP_MINLEN) in read_d()
|
| /freebsd-13-stable/sys/netinet/libalias/ |
| HD | alias.c | 439 if (dlen < ICMP_MINLEN) in IcmpAliasIn()
|
| /freebsd-13-stable/sys/netpfil/ipfilter/netinet/ |
| HD | fil.c | 1210 minicmpsz = ICMP_MINLEN; in ipf_pr_icmp()
|