Home
last modified time | relevance | path

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

/xnu-8792.41.9/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.c284 struct icmp6_hdr *icmp6; in icmp6_error_flag()
361 struct icmp6_hdr *icp; in icmp6_error_flag()
364 IP6_EXTHDR_CHECK(m, 0, off + sizeof(struct icmp6_hdr), return ); in icmp6_error_flag()
365 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off); in icmp6_error_flag()
367 IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off, in icmp6_error_flag()
417 preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr); in icmp6_error_flag()
431 icmp6 = (struct icmp6_hdr *)(nip6 + 1); in icmp6_error_flag()
469 struct icmp6_hdr *icmp6, *nicmp6; in icmp6_input()
477 IP6_EXTHDR_CHECK(m, off, sizeof(struct icmp6_hdr), return IPPROTO_DONE); in icmp6_input()
489 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.c524 struct icmp6_hdr *icmp6; in rip6_output()
525 if (m->m_len < sizeof(struct icmp6_hdr) && in rip6_output()
526 (m = m_pullup(m, sizeof(struct icmp6_hdr))) == NULL) { in rip6_output()
530 icmp6 = mtod(m, struct icmp6_hdr *); in rip6_output()
694 off = offsetof(struct icmp6_hdr, icmp6_cksum); in rip6_output()
H A Dmld6_var.h175 sizeof(struct icmp6_hdr))
H A Dudp6_usrreq.c668 struct icmp6_hdr *icmp6 = NULL; in udp6_ctlinput()
H A Dip6_input.c364 sizeof(struct icmp6_hdr)) <= _MHLEN); in ip6_init()
H A Dip6_output.c3054 const int icmp6off = offsetof(struct icmp6_hdr, icmp6_cksum); in ip6_raw_ctloutput()
/xnu-8792.41.9/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;
436 struct icmp6_hdr icmp6_nl_hdr;
450 struct icmp6_hdr icmp6_ni_hdr;
522 struct icmp6_hdr rr_hdr;
H A Dtcp_subr.c2539 struct icmp6_hdr *icmp6; in tcp6_ctlinput()
/xnu-8792.41.9/bsd/net/
H A Dnat464_utils.c259 struct icmp6_hdr *icmp6; in nat464_translate_icmp()
926 struct icmp6_hdr *icmp6h = NULL; in nat464_translate_proto()
941 icmp6h = (struct icmp6_hdr *)(uintptr_t)icmph; in nat464_translate_proto()
942 pbuf_copy_back(pbuf, hlen, sizeof(struct icmp6_hdr), in nat464_translate_proto()
995 struct icmp6_hdr *icmp6h = NULL; in nat464_translate_proto()
999 icmp6h = (struct icmp6_hdr*) pbuf_contig_segment(pbuf, hlen, in nat464_translate_proto()
H A Dpf.c4571 struct icmp6_hdr *icmp6; in pf_translate_icmp_af()
4849 struct icmp6_hdr *icmp6; in pf_nat64_ipv4()
4852 icmp6 = (struct icmp6_hdr *)pbuf_contig_segment(pbuf, hlen, in pf_nat64_ipv4()
7924 off + sizeof(struct icmp6_hdr)) == in pf_test_state_icmp()
7929 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
7984 off + sizeof(struct icmp6_hdr)) == in pf_test_state_icmp()
7989 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
8052 ipoff2 = off + sizeof(struct icmp6_hdr); in pf_test_state_icmp()
8214 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
8299 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
[all …]
H A Dpfvar.h1419 struct icmp6_hdr *icmp6;
H A Dif_bridge.c8281 struct icmp6_hdr *icmp6;
8295 icmp6 = (struct icmp6_hdr *)((caddr_t)ip6h + off);
8751 #define CKSUM_OFFSET_ICMP6 offsetof(struct icmp6_hdr, icmp6_cksum)
/xnu-8792.41.9/tests/
H A Dnet_bridge.c903 const struct icmp6_hdr *icmp6; in ip6_frame_validate()
909 icmp6 = (const struct icmp6_hdr *)(ip6 + 1); in ip6_frame_validate()
1330 sizeof(struct icmp6_hdr)))
1353 struct icmp6_hdr * icmp6; in ethernet_nd6_frame_populate()
1372 icmp6 = (struct icmp6_hdr *)(void *)(ip6 + 1); in ethernet_nd6_frame_populate()
2705 const struct icmp6_hdr * icmp6, in validate_mac_nat_nd6()
2749 validate_mac_nat_icmp6_out(switch_port_t port, const struct icmp6_hdr * icmp6, in validate_mac_nat_icmp6_out()
2781 const struct icmp6_hdr * icmp6; in validate_mac_nat_nd6_out()
2792 icmp6 = (const struct icmp6_hdr *)(const void *)(ip6 + 1); in validate_mac_nat_nd6_out()