Searched refs:ICMP_MINLEN (Results 1 – 6 of 6) sorted by relevance
| /xnu-8019.80.24/bsd/netinet/ |
| H A D | ip_icmp.c | 233 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN) { in icmp_error() 239 if (n->m_len < oiphlen + ICMP_MINLEN) { in icmp_error() 255 n->m_len >= oiphlen + ICMP_MINLEN && in icmp_error() 331 stdreply: icmpelen = max(ICMP_MINLEN, min(icmp_datalen, in icmp_error() 345 if (MHLEN > (sizeof(struct ip) + ICMP_MINLEN + icmplen)) { in icmp_error() 361 (u_int)(sizeof(struct ip) - ICMP_MINLEN)); in icmp_error() 362 m_align(m, ICMP_MINLEN + icmplen); in icmp_error() 363 m->m_len = ICMP_MINLEN + icmplen; /* for ICMP header and data */ in icmp_error() 457 if (icmplen < ICMP_MINLEN) { in icmp_input() 1330 if (m->m_pkthdr.len < hlen + ICMP_MINLEN) { in icmp_dgram_send() [all …]
|
| H A D | ip_icmp.h | 155 #define ICMP_MINLEN 8 /* abs minimum */ macro
|
| H A D | ip_compat.h | 379 #ifndef ICMP_MINLEN 380 # define ICMP_MINLEN 8
|
| /xnu-8019.80.24/tests/ |
| H A D | icmp_fragmented_payload.c | 235 pcb->icmp_hdr_len = ICMP_MINLEN; in icmp4_pcb_set_payload() 303 T_ASSERT_LE(ICMP_MINLEN, icmplen, "ICMP payload smaller than minimal ICMP len"); in icmp4_pcb_assert_payload_correct()
|
| /xnu-8019.80.24/bsd/net/ |
| H A D | nat464_utils.c | 930 ICMP_MINLEN); in nat464_translate_proto() 1012 pbuf_copy_back(pbuf, hlen, ICMP_MINLEN, in nat464_translate_proto() 1017 ip2off = hlen + ICMP_MINLEN; in nat464_translate_proto()
|
| H A D | pf.c | 4730 ICMP_MINLEN); in pf_nat64_ipv6() 4868 hdrlen = ICMP_MINLEN; in pf_test_rule() 6133 hdrlen = ICMP_MINLEN; in pf_test_dummynet() 7783 off + ICMP_MINLEN) == NULL) { in pf_test_state_icmp() 7786 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 7830 off + ICMP_MINLEN) == NULL) { in pf_test_state_icmp() 7833 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 7893 ipoff2 = off + ICMP_MINLEN; in pf_test_state_icmp() 8162 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 8367 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() [all …]
|