| /freebsd-14.2/sbin/ping/ |
| H A D | ping.c | 106 #define MASK_LEN (ICMP_MASKLEN - ICMP_MINLEN) 107 #define TS_LEN (ICMP_TSLEN - ICMP_MINLEN) 1025 memcpy(&icp, outpack, ICMP_MINLEN + phdr_len); in pinger() 1049 (void *)&outpack[ICMP_MINLEN + phdr_len], in pinger() 1053 memcpy(outpack, &icp, ICMP_MINLEN + phdr_len); in pinger() 1055 cc = ICMP_MINLEN + phdr_len + datalen; in pinger() 1146 if (cc < hlen + ICMP_MINLEN) { in pr_pack() 1171 if ((size_t)(cc - ICMP_MINLEN - phdr_len) >= in pr_pack() 1245 dp = &outpack[ICMP_MINLEN + phdr_len]; in pr_pack() 1246 cc -= ICMP_MINLEN + phdr_len; in pr_pack() [all …]
|
| /freebsd-14.2/sys/netpfil/ipfw/nat64/ |
| H A D | 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()
|
| H A D | 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()
|
| H A D | nat64_translate.c | 911 if (m->m_len < offset + ICMP_MINLEN) in nat64_icmp_translate() 912 m = m_pullup(m, offset + ICMP_MINLEN); in nat64_icmp_translate() 1040 hlen = offset + ICMP_MINLEN; in nat64_icmp_translate() 1041 if (m->m_pkthdr.len < hlen + sizeof(struct ip) + ICMP_MINLEN) { in nat64_icmp_translate() 1060 if (m->m_pkthdr.len < hlen + ICMP_MINLEN) { in nat64_icmp_translate() 1468 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { in nat64_handle_icmp6() 1493 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) in nat64_handle_icmp6() 1494 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); in nat64_handle_icmp6() 1507 ICMP_MINLEN) in nat64_handle_icmp6()
|
| H A D | 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-14.2/sys/netinet/ |
| H A D | ip_icmp.c | 237 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN) in icmp_error() 241 if (n->m_len < oiphlen + ICMP_MINLEN) in icmp_error() 329 if (MHLEN > sizeof(struct ip) + ICMP_MINLEN + icmplen) in icmp_error() 339 sizeof(struct ip) - ICMP_MINLEN); in icmp_error() 340 m_align(m, sizeof(struct ip) + ICMP_MINLEN + icmplen); in icmp_error() 342 m->m_len = ICMP_MINLEN + icmplen; in icmp_error() 490 if (icmplen < ICMP_MINLEN) { in icmp_input()
|
| H A D | ip_icmp.h | 134 #define ICMP_MINLEN 8 /* abs minimum */ macro
|
| /freebsd-14.2/sbin/natd/ |
| H A D | icmp.c | 80 icmpLen = ICMP_MINLEN + failBytes; in SendNeedFragIcmp()
|
| /freebsd-14.2/contrib/tcpdump/ |
| H A D | print-icmp.c | 95 #define ICMP_MINLEN 8 /* abs minimum */ macro
|
| /freebsd-14.2/contrib/traceroute/ |
| H A D | traceroute.c | 1437 if (cc < hlen + ICMP_MINLEN) { in packet_ok() 1485 for (i = 4; i <= cc - ICMP_MINLEN; i += sizeof(*lp)) in packet_ok()
|
| /freebsd-14.2/sbin/routed/ |
| H A D | rdisc.c | 967 if (cc < hlen + ICMP_MINLEN) in read_d()
|
| /freebsd-14.2/sys/netpfil/pf/ |
| H A D | pf.c | 609 m_copyback(m, off, ICMP_MINLEN, (caddr_t)ih); in pf_packet_rework_nat() 4824 m_copyback(m, off, ICMP_MINLEN, (caddr_t)&pd->hdr.icmp); in pf_test_rule() 6807 m_copyback(m, off, ICMP_MINLEN, in pf_test_state_icmp() 6860 ipoff2 = off + ICMP_MINLEN; in pf_test_state_icmp() 7069 m_copyback(m, off, ICMP_MINLEN, in pf_test_state_icmp() 7138 m_copyback(m, off, ICMP_MINLEN, in pf_test_state_icmp() 7162 if (!pf_pull_hdr(m, off2, iih, ICMP_MINLEN, in pf_test_state_icmp() 7208 m_copyback(m, off, ICMP_MINLEN, (caddr_t)&pd->hdr.icmp); in pf_test_state_icmp() 7210 m_copyback(m, off2, ICMP_MINLEN, (caddr_t)iih); in pf_test_state_icmp() 7318 m_copyback(m, off, ICMP_MINLEN, in pf_test_state_icmp() [all …]
|
| /freebsd-14.2/sys/netinet/libalias/ |
| H A D | alias.c | 439 if (dlen < ICMP_MINLEN) in IcmpAliasIn()
|
| /freebsd-14.2/sys/netpfil/ipfilter/netinet/ |
| H A D | fil.c | 1210 minicmpsz = ICMP_MINLEN; in ipf_pr_icmp()
|