Searched refs:ICMP_MINLEN (Results 1 – 6 of 6) sorted by relevance
| /xnu-11215.1.10/bsd/netinet/ |
| H A D | ip_icmp.c | 228 if (n->m_len < sizeof(struct ip) + ICMP_MINLEN) { in icmp_error() 234 if (n->m_len < oiphlen + ICMP_MINLEN) { in icmp_error() 250 n->m_len >= oiphlen + ICMP_MINLEN) { in icmp_error() 252 memcpy(&oicp, mtodo(n, oiphlen), ICMP_MINLEN); in icmp_error() 328 stdreply: icmpelen = max(ICMP_MINLEN, min(icmp_datalen, in icmp_error() 342 if (MHLEN > (sizeof(struct ip) + ICMP_MINLEN + icmplen)) { in icmp_error() 358 (u_int)(sizeof(struct ip) - ICMP_MINLEN)); in icmp_error() 359 m_align(m, ICMP_MINLEN + icmplen); in icmp_error() 360 m->m_len = ICMP_MINLEN + icmplen; /* for ICMP header and data */ in icmp_error() 470 if (icmplen < ICMP_MINLEN) { in icmp_input() [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-11215.1.10/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-11215.1.10/bsd/net/ |
| H A D | nat464_utils.c | 936 ICMP_MINLEN); in nat464_translate_proto() 1018 pbuf_copy_back(pbuf, hlen, ICMP_MINLEN, in nat464_translate_proto() 1023 ip2off = hlen + ICMP_MINLEN; in nat464_translate_proto()
|
| H A D | pf.c | 4845 ICMP_MINLEN); in pf_nat64_ipv6() 4985 hdrlen = ICMP_MINLEN; in pf_test_rule() 6272 hdrlen = ICMP_MINLEN; in pf_test_dummynet() 7948 off + ICMP_MINLEN) == NULL) { in pf_test_state_icmp() 7951 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 7995 off + ICMP_MINLEN) == NULL) { in pf_test_state_icmp() 7998 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 8058 ipoff2 = off + ICMP_MINLEN; in pf_test_state_icmp() 8327 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() 8532 pbuf_copy_back(pbuf, off, ICMP_MINLEN, in pf_test_state_icmp() [all …]
|