Searched refs:ICMP_MINLEN (Results 1 – 6 of 6) sorted by relevance
| /xnu-8796.121.2/bsd/netinet/ |
| H A D | ip_icmp.c | 227 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN) { in icmp_error() 233 if (n->m_len < oiphlen + ICMP_MINLEN) { in icmp_error() 249 n->m_len >= oiphlen + ICMP_MINLEN && in icmp_error() 325 stdreply: icmpelen = max(ICMP_MINLEN, min(icmp_datalen, in icmp_error() 339 if (MHLEN > (sizeof(struct ip) + ICMP_MINLEN + icmplen)) { in icmp_error() 355 (u_int)(sizeof(struct ip) - ICMP_MINLEN)); in icmp_error() 356 m_align(m, ICMP_MINLEN + icmplen); in icmp_error() 357 m->m_len = ICMP_MINLEN + icmplen; /* for ICMP header and data */ in icmp_error() 467 if (icmplen < ICMP_MINLEN) { in icmp_input() 1243 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-8796.121.2/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-8796.121.2/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 | 4808 ICMP_MINLEN); in pf_nat64_ipv6() 4948 hdrlen = ICMP_MINLEN; in pf_test_rule() 6236 hdrlen = ICMP_MINLEN; in pf_test_dummynet() 7912 off + ICMP_MINLEN) == NULL) { in pf_test_state_icmp() 7915 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 7959 off + ICMP_MINLEN) == NULL) { in pf_test_state_icmp() 7962 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 8022 ipoff2 = off + ICMP_MINLEN; in pf_test_state_icmp() 8291 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 8496 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() [all …]
|