Home
last modified time | relevance | path

Searched refs:icmp6_hdr (Results 1 – 18 of 18) sorted by relevance

/xnu-11215.1.10/bsd/netinet6/
H A Dmld6.h66 #define MLD_MINLEN sizeof(struct icmp6_hdr)
74 struct icmp6_hdr mld_icmp6_hdr; /* ICMPv6 header */
95 struct icmp6_hdr mld_icmp6_hdr;
H A Dicmp6.c287 struct icmp6_hdr *__single icmp6; in icmp6_error_flag()
364 struct icmp6_hdr *__single icp; in icmp6_error_flag()
367 IP6_EXTHDR_CHECK(m, 0, off + sizeof(struct icmp6_hdr), return ); in icmp6_error_flag()
368 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off); in icmp6_error_flag()
370 IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off, in icmp6_error_flag()
420 preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr); in icmp6_error_flag()
434 icmp6 = (struct icmp6_hdr *)(nip6 + 1); in icmp6_error_flag()
472 struct icmp6_hdr *__single icmp6, *__single nicmp6; in icmp6_input()
480 IP6_EXTHDR_CHECK(m, off, sizeof(struct icmp6_hdr), return IPPROTO_DONE); in icmp6_input()
492 if (icmp6len < sizeof(struct icmp6_hdr)) { in icmp6_input()
[all …]
H A Dip6protosw.h115 struct icmp6_hdr;
139 struct icmp6_hdr *ip6c_icmp6; /* icmp6 header of target packet */
H A Draw_ip6.c530 struct icmp6_hdr *icmp6; in rip6_output()
531 if (m->m_len < sizeof(struct icmp6_hdr) && in rip6_output()
532 (m = m_pullup(m, sizeof(struct icmp6_hdr))) == NULL) { in rip6_output()
536 icmp6 = mtod(m, struct icmp6_hdr *); in rip6_output()
701 off = offsetof(struct icmp6_hdr, icmp6_cksum); in rip6_output()
H A Dmld6_var.h175 sizeof(struct icmp6_hdr))
H A Dudp6_usrreq.c686 struct icmp6_hdr *__single icmp6 = NULL; in udp6_ctlinput()
H A Dmld6.c3681 struct icmp6_hdr *icmp6; in mld_dispatch_packet()
3736 icmp6 = (struct icmp6_hdr *)(mtod(md, uint8_t *) + off); in mld_dispatch_packet()
H A Dip6_input.c367 sizeof(struct icmp6_hdr)) <= _MHLEN); in ip6_init()
H A Dip6_output.c3111 const int icmp6off = offsetof(struct icmp6_hdr, icmp6_cksum); in ip6_raw_ctloutput()
/xnu-11215.1.10/tests/skywalk/
H A Dskt_reass.c302 struct icmp6_hdr *icmp6 = (struct icmp6_hdr *)scan; in bad_fraglen_match()
376 struct icmp6_hdr *icmp6 = (struct icmp6_hdr *)scan; in timeout_match()
408 plen = sizeof(struct ip6_frag) + sizeof(struct icmp6_hdr) + dlen; in atomic_build()
427 struct icmp6_hdr *icmp6 = (struct icmp6_hdr *)buf; in atomic_build()
432 buf += sizeof(struct icmp6_hdr); in atomic_build()
433 len += sizeof(struct icmp6_hdr); in atomic_build()
441 htonl(IPPROTO_ICMPV6 + sizeof(struct icmp6_hdr) + dlen)); in atomic_build()
442 csum = os_inet_checksum(icmp6, sizeof(struct icmp6_hdr) + dlen, 0); in atomic_build()
477 struct icmp6_hdr *icmp6 = (struct icmp6_hdr *)scan; in atomic_match()
/xnu-11215.1.10/bsd/netinet/
H A Dicmp6.h107 struct icmp6_hdr { struct
215 struct icmp6_hdr mld_icmp6_hdr;
248 struct icmp6_hdr nd_rs_hdr;
258 struct icmp6_hdr nd_ra_hdr;
284 struct icmp6_hdr nd_ns_hdr;
295 struct icmp6_hdr nd_na_hdr;
317 struct icmp6_hdr nd_rd_hdr;
459 struct icmp6_hdr icmp6_nl_hdr;
473 struct icmp6_hdr icmp6_ni_hdr;
545 struct icmp6_hdr rr_hdr;
H A Dtcp_subr.c2566 struct icmp6_hdr *icmp6; in tcp6_ctlinput()
/xnu-11215.1.10/bsd/net/
H A Dnat464_utils.c265 struct icmp6_hdr *__single icmp6; in nat464_translate_icmp()
932 struct icmp6_hdr *__single icmp6h = NULL; in nat464_translate_proto()
947 icmp6h = (struct icmp6_hdr *__single)(void *)icmph; in nat464_translate_proto()
948 pbuf_copy_back(pbuf, hlen, sizeof(struct icmp6_hdr), in nat464_translate_proto()
1001 struct icmp6_hdr *__single icmp6h = NULL; in nat464_translate_proto()
1005 icmp6h = (struct icmp6_hdr*) pbuf_contig_segment(pbuf, hlen, in nat464_translate_proto()
H A Dpf.c4608 struct icmp6_hdr *__single icmp6; in pf_translate_icmp_af()
4616 icmp6 = (struct icmp6_hdr * __single)arg; in pf_translate_icmp_af()
4886 struct icmp6_hdr *icmp6; in pf_nat64_ipv4()
4889 icmp6 = (struct icmp6_hdr *)pbuf_contig_segment(pbuf, hlen, in pf_nat64_ipv4()
7960 off + sizeof(struct icmp6_hdr)) == in pf_test_state_icmp()
7965 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
7966 pf_pd_get_hdr_ptr_icmp6(pd), sizeof(struct icmp6_hdr)); in pf_test_state_icmp()
8020 off + sizeof(struct icmp6_hdr)) == in pf_test_state_icmp()
8025 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
8026 pf_pd_get_hdr_ptr_icmp6(pd), sizeof(struct icmp6_hdr)); in pf_test_state_icmp()
[all …]
H A Dif_redirect.c724 struct icmp6_hdr *icmp6; in pkt_is_for_delegate()
734 icmp6 = (struct icmp6_hdr *)(void *)hdr; in pkt_is_for_delegate()
H A Dpfvar.h1525 _DEFINE_PDESC_TYPED_HDR_ACCESSOR(icmp6, struct icmp6_hdr);
H A Dif_bridge.c8788 struct icmp6_hdr *icmp6;
8812 icmp6 = (struct icmp6_hdr *)(header + sizeof(*eh) + off);
8833 icmp6 = (struct icmp6_hdr *)(header + sizeof(*eh) + off);
9476 #define CKSUM_OFFSET_ICMP6 offsetof(struct icmp6_hdr, icmp6_cksum)
/xnu-11215.1.10/tests/
H A Dnet_bridge.c483 const struct icmp6_hdr *icmp6; in ip6_frame_validate()
489 icmp6 = (const struct icmp6_hdr *)(ip6 + 1); in ip6_frame_validate()
778 sizeof(struct icmp6_hdr)))
801 struct icmp6_hdr * icmp6; in ethernet_nd6_frame_populate()
820 icmp6 = (struct icmp6_hdr *)(void *)(ip6 + 1); in ethernet_nd6_frame_populate()
2131 const struct icmp6_hdr * icmp6, in validate_mac_nat_nd6()
2177 validate_mac_nat_icmp6_out(switch_port_t port, const struct icmp6_hdr * icmp6, in validate_mac_nat_icmp6_out()
2209 const struct icmp6_hdr * icmp6; in validate_mac_nat_nd6_out()
2221 icmp6 = (const struct icmp6_hdr *)(const void *)(ip6 + 1); in validate_mac_nat_nd6_out()