Home
last modified time | relevance | path

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

/freebsd/sbin/ping/
H A Dping.c94 #define MASK_LEN (ICMP_MASKLEN - ICMP_MINLEN)
95 #define TS_LEN (ICMP_TSLEN - ICMP_MINLEN)
541 icmp_len = sizeof(struct ip) + ICMP_MINLEN + phdr_len; in ping()
549 datap = &outpack[ICMP_MINLEN + phdr_len + TIMEVAL_LEN]; in ping()
1013 memcpy(&icp, outpack, ICMP_MINLEN + phdr_len); in pinger()
1037 (void *)&outpack[ICMP_MINLEN + phdr_len], in pinger()
1041 memcpy(outpack, &icp, ICMP_MINLEN + phdr_len); in pinger()
1043 cc = ICMP_MINLEN + phdr_len + datalen; in pinger()
1134 if (cc < hlen + ICMP_MINLEN) { in pr_pack()
1159 if ((size_t)(cc - ICMP_MINLEN - phdr_len) >= in pr_pack()
[all …]
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64clat.c174 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { in nat64clat_handle_icmp6()
178 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) in nat64clat_handle_icmp6()
179 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); in nat64clat_handle_icmp6()
H A Dnat64stl.c174 if (m->m_pkthdr.len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) { in nat64stl_handle_icmp6()
178 if (m->m_len < hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN) in nat64stl_handle_icmp6()
179 m = m_pullup(m, hlen + sizeof(struct ip6_hdr) + ICMP_MINLEN); in nat64stl_handle_icmp6()
H A Dnat64_translate.c911 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 Dnat64lsn.c421 off = (ip->ip_hl << 2) + ICMP_MINLEN; in inspect_icmp_mbuf()
445 if ((*mp)->m_pkthdr.len < off + sizeof(struct ip) + ICMP_MINLEN) in inspect_icmp_mbuf()
447 if ((*mp)->m_len < off + sizeof(struct ip) + ICMP_MINLEN) in inspect_icmp_mbuf()
448 *mp = m_pullup(*mp, off + sizeof(struct ip) + ICMP_MINLEN); in inspect_icmp_mbuf()
455 if ((*mp)->m_len < off + ICMP_MINLEN) in inspect_icmp_mbuf()
456 *mp = m_pullup(*mp, off + ICMP_MINLEN); in inspect_icmp_mbuf()
566 len += ICMP_MINLEN; /* Enough to get icmp_id */ in nat64lsn_reassemble4()
/freebsd/sys/netinet/
H A Dip_icmp.c235 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN) in icmp_error()
239 if (n->m_len < oiphlen + ICMP_MINLEN) in icmp_error()
327 if (MHLEN > sizeof(struct ip) + ICMP_MINLEN + icmplen) in icmp_error()
337 sizeof(struct ip) - ICMP_MINLEN); in icmp_error()
338 m_align(m, sizeof(struct ip) + ICMP_MINLEN + icmplen); in icmp_error()
340 m->m_len = ICMP_MINLEN + icmplen; in icmp_error()
488 if (icmplen < ICMP_MINLEN) { in icmp_input()
H A Dip_icmp.h132 #define ICMP_MINLEN 8 /* abs minimum */ macro
/freebsd/sbin/natd/
H A Dicmp.c80 icmpLen = ICMP_MINLEN + failBytes; in SendNeedFragIcmp()
/freebsd/contrib/tcpdump/
H A Dprint-icmp.c95 #define ICMP_MINLEN 8 /* abs minimum */ macro
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c1364 if (cc < hlen + ICMP_MINLEN) { in packet_ok()
1408 for (i = 4; i <= cc - ICMP_MINLEN; i += sizeof(*lp)) in packet_ok()
/freebsd/sbin/routed/
H A Drdisc.c967 if (cc < hlen + ICMP_MINLEN) in read_d()
/freebsd/sys/netpfil/pf/
H A Dpf.c659 m_copyback(m, off, ICMP_MINLEN, (caddr_t)ih); in pf_packet_rework_nat()
5071 m_copyback(pd->m, pd->off, ICMP_MINLEN, (caddr_t)&pd->hdr.icmp); in pf_test_rule()
6963 m_copyback(pd->m, pd->off, ICMP_MINLEN, in pf_test_state_icmp()
7017 ipoff2 = pd->off + ICMP_MINLEN; in pf_test_state_icmp()
7194 m_copyback(pd->m, pd->off, ICMP_MINLEN, in pf_test_state_icmp()
7263 m_copyback(pd->m, pd->off, ICMP_MINLEN, in pf_test_state_icmp()
7292 if (!pf_pull_hdr(pd->m, pd2.off, iih, ICMP_MINLEN, in pf_test_state_icmp()
7338 m_copyback(pd->m, pd->off, ICMP_MINLEN, (caddr_t)&pd->hdr.icmp); in pf_test_state_icmp()
7340 m_copyback(pd->m, pd2.off, ICMP_MINLEN, (caddr_t)iih); in pf_test_state_icmp()
7453 m_copyback(pd->m, pd->off, ICMP_MINLEN, in pf_test_state_icmp()
[all …]
/freebsd/sys/netinet/libalias/
H A Dalias.c439 if (dlen < ICMP_MINLEN) in IcmpAliasIn()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dfil.c1206 minicmpsz = ICMP_MINLEN; in ipf_pr_icmp()