Home
last modified time | relevance | path

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

/freebsd-13-stable/sbin/ping/
HDping.c107 #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/
HDnat64clat.c175 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()
HDnat64stl.c175 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()
HDnat64_translate.c910 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()
HDnat64lsn.c422 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/
HDip_icmp.c238 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()
HDip_icmp.h134 #define ICMP_MINLEN 8 /* abs minimum */ macro
/freebsd-13-stable/sbin/natd/
HDicmp.c80 icmpLen = ICMP_MINLEN + failBytes; in SendNeedFragIcmp()
/freebsd-13-stable/contrib/tcpdump/
HDprint-icmp.c95 #define ICMP_MINLEN 8 /* abs minimum */ macro
/freebsd-13-stable/contrib/traceroute/
HDtraceroute.c1412 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/
HDpf.c580 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/
HDrdisc.c967 if (cc < hlen + ICMP_MINLEN) in read_d()
/freebsd-13-stable/sys/netinet/libalias/
HDalias.c439 if (dlen < ICMP_MINLEN) in IcmpAliasIn()
/freebsd-13-stable/sys/netpfil/ipfilter/netinet/
HDfil.c1210 minicmpsz = ICMP_MINLEN; in ipf_pr_icmp()