Home
last modified time | relevance | path

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

12

/freebsd/sys/netinet/
H A Dicmp6.h71 struct icmp6_hdr { struct
181 struct icmp6_hdr mld_icmp6_hdr;
210 struct icmp6_hdr nd_rs_hdr;
220 struct icmp6_hdr nd_ra_hdr;
253 struct icmp6_hdr nd_ns_hdr;
264 struct icmp6_hdr nd_na_hdr;
286 struct icmp6_hdr nd_rd_hdr;
392 struct icmp6_hdr icmp6_nl_hdr;
406 struct icmp6_hdr icmp6_ni_hdr;
478 struct icmp6_hdr rr_hdr;
[all …]
/freebsd/sys/netinet6/
H A Dicmp6.c270 struct icmp6_hdr *icmp6; in icmp6_error()
330 struct icmp6_hdr *icp; in icmp6_error()
332 if (m->m_len < off + sizeof(struct icmp6_hdr)) { in icmp6_error()
333 m = m_pullup(m, off + sizeof(struct icmp6_hdr)); in icmp6_error()
340 icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off); in icmp6_error()
369 preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr); in icmp6_error()
383 icmp6 = (struct icmp6_hdr *)(nip6 + 1); in icmp6_error()
403 icmp6_errmap(const struct icmp6_hdr *icmp6) in icmp6_errmap()
455 struct icmp6_hdr *icmp6, *nicmp6; in icmp6_input()
464 if (m->m_len < off + sizeof(struct icmp6_hdr)) { in icmp6_input()
[all …]
H A Dmld6.h39 #define MLD_MINLEN sizeof(struct icmp6_hdr)
47 struct icmp6_hdr mld_icmp6_hdr; /* ICMPv6 header */
68 struct icmp6_hdr mld_icmp6_hdr;
H A Dsend.c115 struct icmp6_hdr *icmp6; in send_output()
128 sizeof(struct icmp6_hdr))) { in send_output()
130 sizeof(struct icmp6_hdr)); in send_output()
144 icmp6 = (struct icmp6_hdr *)(ip6 + 1); in send_output()
H A Draw_ip6.c438 struct icmp6_hdr *icmp6; in rip6_send()
439 if (m->m_len < sizeof(struct icmp6_hdr) && in rip6_send()
440 (m = m_pullup(m, sizeof(struct icmp6_hdr))) == NULL) { in rip6_send()
444 icmp6 = mtod(m, struct icmp6_hdr *); in rip6_send()
504 off = offsetof(struct icmp6_hdr, icmp6_cksum); in rip6_send()
H A Dmld6_var.h104 sizeof(struct icmp6_hdr))
H A Dip6_var.h459 struct icmp6_hdr *ip6c_icmp6; /* icmp6 header of target packet */
/freebsd/contrib/tcpdump/
H A Dprint-icmp6.c74 struct icmp6_hdr { struct
176 struct icmp6_hdr mld6_hdr;
194 struct icmp6_hdr nd_rs_hdr;
204 struct icmp6_hdr nd_ra_hdr;
234 struct icmp6_hdr nd_ns_hdr;
245 struct icmp6_hdr nd_na_hdr;
260 struct icmp6_hdr nd_rd_hdr;
363 struct icmp6_hdr icmp6_nl_hdr;
377 struct icmp6_hdr icmp6_ni_hdr;
413 struct icmp6_hdr rr_hdr;
[all …]
/freebsd/usr.sbin/traceroute6/
H A Dtraceroute6.c1104 struct icmp6_hdr *icp; in send_probe()
1123 icp = (struct icmp6_hdr *)outpacket; in send_probe()
1324 struct icmp6_hdr *icp; in packet_ok()
1339 if (cc < hlen + sizeof(struct icmp6_hdr)) { in packet_ok()
1350 icp = (struct icmp6_hdr *)(buf + hlen); in packet_ok()
1352 if (cc < (int)sizeof(struct icmp6_hdr)) { in packet_ok()
1361 icp = (struct icmp6_hdr *)buf; in packet_ok()
1397 struct icmp6_hdr *icmp; in packet_ok()
1413 icmp = (struct icmp6_hdr *)up; in packet_ok()
/freebsd/contrib/wpa/src/ap/
H A Dndisc_snoop.c29 struct icmp6_hdr icmp6h;
108 if (len < ETH_HLEN + sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) in handle_ndisc()
/freebsd/sys/netpfil/ipfw/nat64/
H A Dnat64_translate.c647 struct icmp6_hdr *icmp6; in nat64_icmp6_reflect()
708 plen = len + sizeof(struct icmp6_hdr); in nat64_icmp6_reflect()
756 sizeof(struct icmp6_hdr))); in nat64_icmp6_reflect()
875 nat64_icmp_handle_echo(struct ip6_hdr *ip6, struct icmp6_hdr *icmp6, in nat64_icmp_handle_echo()
1084 sizeof(struct icmp6_hdr) + len > NAT64_ICMP6_PLEN) in nat64_icmp_translate()
1085 len = NAT64_ICMP6_PLEN - sizeof(struct icmp6_hdr) - in nat64_icmp_translate()
1087 plen = sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr) + len; in nat64_icmp_translate()
1100 eip6 = mtodo(n, offset + sizeof(struct icmp6_hdr)); in nat64_icmp_translate()
1341 struct icmp6_hdr *icmp6; in nat64_handle_icmp6()
1467 hlen += sizeof(struct icmp6_hdr); in nat64_handle_icmp6()
[all …]
H A Dnat64clat.c151 struct icmp6_hdr *icmp6; in nat64clat_handle_icmp6()
173 hlen += sizeof(struct icmp6_hdr); in nat64clat_handle_icmp6()
H A Dnat64stl.c151 struct icmp6_hdr *icmp6; in nat64stl_handle_icmp6()
173 hlen += sizeof(struct icmp6_hdr); in nat64stl_handle_icmp6()
H A Dnat64_translate.h81 #define ICMP6(p) ((struct icmp6_hdr *)(p))
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_log.c394 struct icmp6_hdr *icmp; in ipf_log_pkt()
396 icmp = (struct icmp6_hdr *)fin->fin_dp; in ipf_log_pkt()
404 hlen += MIN(sizeof(struct icmp6_hdr) + 8, in ipf_log_pkt()
407 hlen += MIN(sizeof(struct icmp6_hdr), in ipf_log_pkt()
H A Dip_nat6.c698 ((struct icmp6_hdr *)fin->fin_dp)->icmp6_id = port; in ipf_nat6_newmap()
900 ((struct icmp6_hdr *)fin->fin_dp)->icmp6_id = nport; in ipf_nat6_newrdr()
1358 struct icmp6_hdr *icmp6, *orgicmp; in ipf_nat6_icmperrorlookup()
1431 orgicmp = (struct icmp6_hdr *)(oip6 + 1); in ipf_nat6_icmperrorlookup()
1555 struct icmp6_hdr *icmp6; in ipf_nat6_icmperror()
1795 struct icmp6_hdr *orgicmp; in ipf_nat6_icmperror()
1802 orgicmp = (struct icmp6_hdr *)dp; in ipf_nat6_icmperror()
2569 struct icmp6_hdr *icmp6 = NULL; in ipf_nat6_checkout()
2767 struct icmp6_hdr *icmp6; in ipf_nat6_out()
2963 struct icmp6_hdr *icmp6; in ipf_nat6_checkin()
[all …]
/freebsd/sbin/ping/
H A Dping6.c247 static void pr_icmph(struct icmp6_hdr *, u_char *);
251 static int myechoreply(const struct icmp6_hdr *);
1293 struct icmp6_hdr *icp; in pinger()
1302 icp = (struct icmp6_hdr *)outpack; in pinger()
1424 myechoreply(const struct icmp6_hdr *icp) in myechoreply()
1529 struct icmp6_hdr *icp; in pr_pack()
1558 if (cc < (int)sizeof(struct icmp6_hdr)) { in pr_pack()
1567 icp = (struct icmp6_hdr *)buf; in pr_pack()
2268 pr_icmph(struct icmp6_hdr *icp, u_char *end) in pr_icmph()
/freebsd/usr.sbin/ppp/
H A Dip.c306 const struct icmp6_hdr *ih6; in FilterCheck()
324 ih6 = (const struct icmp6_hdr *)payload; in FilterCheck()
570 const struct icmp6_hdr *icmp6h; in PacketCheck()
638 icmp6h = (const struct icmp6_hdr *)payload; in PacketCheck()
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_log.c85 #define ICMP6(p) ((struct icmp6_hdr *)(p))
317 struct icmp6_hdr *icmp6; in ipfw_log_syslog()
385 icmp6 = (struct icmp6_hdr *)(((char *)ip) + hlen); in ipfw_log_syslog()
/freebsd/usr.sbin/rtadvd/
H A Drtadvd.c717 struct icmp6_hdr *icp; in rtadvd_input()
779 if ((size_t)i < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) { in rtadvd_input()
786 icp = (struct icmp6_hdr *)(ip + 1); /* XXX: ext. hdr? */ in rtadvd_input()
788 if ((size_t)i < sizeof(struct icmp6_hdr)) { in rtadvd_input()
793 icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base; in rtadvd_input()
/freebsd/usr.sbin/rtsold/
H A Drtsol.c170 struct icmp6_hdr *icp; in rtsol_input()
233 icp = (struct icmp6_hdr *)iov.iov_base; in rtsol_input()
/freebsd/sys/netpfil/pf/
H A Dpf.c3507 struct icmp6_hdr *icmp; in pf_translate_af()
3581 icmp = (struct icmp6_hdr *)(mp->m_data + off); in pf_translate_af()
3685 struct icmp6_hdr *icmp6; in pf_translate_icmp_af()
7788 m_copyback(pd->m, pd->off, sizeof(struct icmp6_hdr), in pf_test_state_icmp()
7859 ipoff2 = pd->off + sizeof(struct icmp6_hdr); in pf_test_state_icmp()
8019 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
8089 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
8152 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
8219 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
8302 sizeof(struct icmp6_hdr), in pf_test_state_icmp()
[all …]
/freebsd/sbin/ipf/libipf/
H A Dipft_tx.c335 struct icmp6_hdr icmp, *ic6 = &icmp; in parseipv6()
/freebsd/sys/netipsec/
H A Dipsec.c695 struct icmp6_hdr ih; in ipsec6_get_ulp()
734 if (off + sizeof(struct icmp6_hdr) > m->m_pkthdr.len) in ipsec6_get_ulp()
/freebsd/tests/sys/netinet/
H A Dfibs_multibind_test.c433 struct icmp6_hdr icmp6; in ping6()

12