Home
last modified time | relevance | path

Searched refs:ip6 (Results 1 – 25 of 106) sorted by relevance

12345

/f-stack/freebsd/netinet6/
H A Dip6_forward.c123 ip6->ip6_nxt, in ip6_forward()
134 ip6->ip6_hlim <= IPV6_HLIMDEC) { in ip6_forward()
155 ip6->ip6_hlim -= IPV6_HLIMDEC; in ip6_forward()
184 dst.sin6_addr = ip6->ip6_dst; in ip6_forward()
221 ip6->ip6_nxt, in ip6_forward()
307 in6_clearscope(&ip6->ip6_src); in ip6_forward()
308 in6_clearscope(&ip6->ip6_dst); in ip6_forward()
314 odst = ip6->ip6_dst; in ip6_forward()
319 ip6 = mtod(m, struct ip6_hdr *); in ip6_forward()
325 if (in6_localip(&ip6->ip6_dst)) in ip6_forward()
[all …]
H A Dip6_fastfwd.c97 struct ip6_hdr *ip6; in ip6_tryforward() local
105 ip6 = mtod(m, struct ip6_hdr *); in ip6_tryforward()
112 in6_localip(&ip6->ip6_dst)) in ip6_tryforward()
121 plen = ntohs(ip6->ip6_plen); in ip6_tryforward()
160 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward()
182 ip6 = mtod(m, struct ip6_hdr *); in ip6_tryforward()
193 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward()
250 ip6 = mtod(m, struct ip6_hdr *); in ip6_tryforward()
263 dst.sin6_addr = ip6->ip6_dst; in ip6_tryforward()
277 ip6->ip6_hlim -= IPV6_HLIMDEC; in ip6_tryforward()
[all …]
H A Dip6_input.c410 struct ip6_hdr *ip6; in ip6_input_hbh() local
440 (caddr_t)&ip6->ip6_plen - (caddr_t)ip6); in ip6_input_hbh()
536 struct ip6_hdr *ip6; in ip6_input() local
632 IP_PROBE(receive, NULL, NULL, ip6, rcvif, NULL, ip6); in ip6_input()
751 odst = ip6->ip6_dst; in ip6_input()
779 if (in6_clearscope(&ip6->ip6_src) || in6_clearscope(&ip6->ip6_dst)) { in ip6_input()
848 nxt = ip6->ip6_nxt; in ip6_input()
1002 struct ip6_hdr *ip6; in ip6_process_hopopts() local
1603 nxt = ip6->ip6_nxt; in ip6_get_prevhdr()
1630 struct ip6_hdr ip6; in ip6_nexthdr() local
[all …]
H A Din6_gif.c206 struct ip6_hdr *ip6; in in6_gif_ioctl() local
249 ip6 = malloc(sizeof(*ip6), M_GIF, M_WAITOK | M_ZERO); in in6_gif_ioctl()
262 sc->gif_ip6hdr = ip6; in in6_gif_ioctl()
292 struct ip6_hdr *ip6; in in6_gif_output() local
320 ip6->ip6_nxt = proto; in in6_gif_output()
335 struct ip6_hdr *ip6; in in6_gif_input() local
360 const struct ip6_hdr *ip6; in in6_gif_lookup() local
375 CK_LIST_FOREACH(sc, &GIF_HASH(&ip6->ip6_dst, &ip6->ip6_src), chain) { in in6_gif_lookup()
381 &ip6->ip6_dst) && in in6_gif_lookup()
383 &ip6->ip6_src)) { in in6_gif_lookup()
[all …]
H A Dnd6_nbr.c121 struct ip6_hdr *ip6; in nd6_ns_input() local
143 ip6->ip6_hlim, ip6_sprintf(ip6bufs, &ip6->ip6_src), in nd6_ns_input()
158 saddr6 = ip6->ip6_src; in nd6_ns_input()
159 daddr6 = ip6->ip6_dst; in nd6_ns_input()
409 struct ip6_hdr *ip6; in nd6_ns_output_fib() local
447 ip6->ip6_flow = 0; in nd6_ns_output_fib()
452 ip6->ip6_hlim = 255; in nd6_ns_output_fib()
514 bzero(&ip6->ip6_src, sizeof(ip6->ip6_src)); in nd6_ns_output_fib()
618 struct ip6_hdr *ip6; in nd6_na_input() local
649 ip6->ip6_hlim, ip6_sprintf(ip6bufs, &ip6->ip6_src), in nd6_na_input()
[all …]
H A Dsend.c115 struct ip6_hdr *ip6; in send_output() local
143 ip6 = mtod(m, struct ip6_hdr *); in send_output()
144 icmp6 = (struct icmp6_hdr *)(ip6 + 1); in send_output()
179 ip6 = mtod(m, struct ip6_hdr *); in send_output()
180 if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) in send_output()
186 dst.sin6_addr = ip6->ip6_dst; in send_output()
190 IP_PROBE(send, NULL, NULL, ip6, ifp, NULL, ip6); in send_output()
263 struct ip6_hdr *ip6; in send_input() local
277 ip6 = mtod(m, struct ip6_hdr *); in send_input()
278 in6_clearscope(&ip6->ip6_src); in send_input()
[all …]
H A Dudp6_usrreq.c215 struct ip6_hdr *ip6; in udp6_input() local
251 plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6); in udp6_input()
346 &ip6->ip6_dst)) in udp6_input()
351 &ip6->ip6_src) || in udp6_input()
550 struct ip6_hdr *ip6; in udp6_common_ctlinput() local
585 ip6 = NULL; in udp6_common_ctlinput()
590 if (ip6) { in udp6_common_ctlinput()
704 struct ip6_hdr *ip6; in udp6_output() local
934 ip6->ip6_nxt = nxt; in udp6_output()
936 ip6->ip6_src = *laddr; in udp6_output()
[all …]
H A Din6_rss.c218 const struct ip6_hdr *ip6; in rss_mbuf_software_hash_v6() local
251 ip6 = mtod(m, struct ip6_hdr *); in rss_mbuf_software_hash_v6()
252 proto = ip6->ip6_nxt; in rss_mbuf_software_hash_v6()
278 ip6f = (const struct ip6_frag *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
352 th = (const struct tcphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
353 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
365 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); in rss_mbuf_software_hash_v6()
366 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
374 return rss_proto_software_hash_v6(&ip6->ip6_src, &ip6->ip6_dst, in rss_mbuf_software_hash_v6()
H A Dicmp6.c233 struct ip6_hdr *ip6; in icmp6_error2() local
1182 struct ip6_hdr *ip6; in ni6_input() local
2042 struct ip6_hdr *ip6; in icmp6_reflect() local
2148 ip6->ip6_dst = ip6->ip6_src; in icmp6_reflect()
2149 ip6->ip6_src = *srcp; in icmp6_reflect()
2150 ip6->ip6_flow = 0; in icmp6_reflect()
2209 struct ip6_hdr *ip6; in icmp6_redirect_input() local
2252 src6 = ip6->ip6_src; in icmp6_redirect_input()
2507 ip6->ip6_flow = 0; in icmp6_redirect_output()
2512 ip6->ip6_hlim = 255; in icmp6_redirect_output()
[all …]
H A Din6_cksum.c113 scope = in6_getscope(&ip6->ip6_src); in _in6_cksum_pseudo()
114 w = (u_int16_t *)&ip6->ip6_src; in _in6_cksum_pseudo()
121 scope = in6_getscope(&ip6->ip6_dst); in _in6_cksum_pseudo()
122 w = (u_int16_t *)&ip6->ip6_dst; in _in6_cksum_pseudo()
140 sum = _in6_cksum_pseudo(ip6, len, nxt, csum); in in6_cksum_pseudo()
156 struct ip6_hdr *ip6; in in6_cksum_partial() local
192 ip6 = mtod(m, struct ip6_hdr *); in in6_cksum_partial()
195 scope = in6_getscope(&ip6->ip6_src); in in6_cksum_partial()
196 w = (u_int16_t *)&ip6->ip6_src; in in6_cksum_partial()
203 scope = in6_getscope(&ip6->ip6_dst); in in6_cksum_partial()
[all …]
H A Dfrag6.c221 struct ip6_hdr *ip6; in ip6_deletefraghdr() local
229 ip6 = mtod(m, struct ip6_hdr *); in ip6_deletefraghdr()
230 bcopy(ip6, (char *)ip6 + sizeof(struct ip6_frag), offset); in ip6_deletefraghdr()
244 struct ip6_hdr *ip6; in frag6_freef() local
263 ip6->ip6_src = q6->ip6q_src; in frag6_freef()
264 ip6->ip6_dst = q6->ip6q_dst; in frag6_freef()
363 struct ip6_hdr *ip6; in frag6_input() local
406 if (ip6->ip6_plen == 0) { in frag6_input()
449 ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - in frag6_input()
557 q6->ip6q_src = ip6->ip6_src; in frag6_input()
[all …]
H A Dip6_mroute.c1090 if (ip6->ip6_hlim <= 1 || IN6_IS_ADDR_MC_INTFACELOCAL(&ip6->ip6_dst) || in X_ip6_mforward()
1093 ip6->ip6_hlim--; in X_ip6_mforward()
1111 ip6->ip6_nxt, in X_ip6_mforward()
1122 MF6CFIND(ip6->ip6_src, ip6->ip6_dst, rt); in X_ip6_mforward()
1163 hash = MF6CHASH(ip6->ip6_src, ip6->ip6_dst); in X_ip6_mforward()
1486 src0 = ip6->ip6_src; in ip6_mdq()
1487 dst0 = ip6->ip6_dst; in ip6_mdq()
1520 phyint_send(ip6, mifp, m); in ip6_mdq()
1597 IP_PROBE(send, NULL, NULL, ip6, ifp, NULL, ip6); in phyint_send()
1665 sin6.sin6_addr = ip6->ip6_src; in register_send()
[all …]
H A Droute6.c64 struct ip6_hdr *ip6; in route6_input() local
94 ip6 = mtod(m, struct ip6_hdr *); in route6_input()
95 rh = (struct ip6_rthdr *)((caddr_t)ip6 + off); in route6_input()
110 (caddr_t)&rh->ip6r_type - (caddr_t)ip6); in route6_input()
H A Draw_ip6.c239 &ip6->ip6_dst) != 0) in rip6_input()
291 mcaddr.sin6_addr = ip6->ip6_dst; in rip6_input()
398 struct ip6_hdr *ip6; in rip6_output() local
465 ip6 = mtod(m, struct ip6_hdr *); in rip6_output()
489 ip6->ip6_src = in6a; in rip6_output()
491 ip6->ip6_dst = dstsock->sin6_addr; in rip6_output()
496 ip6->ip6_flow = (ip6->ip6_flow & ~IPV6_FLOWINFO_MASK) | in rip6_output()
498 ip6->ip6_vfc = (ip6->ip6_vfc & ~IPV6_VERSION_MASK) | in rip6_output()
504 ip6->ip6_nxt = inp->inp_ip_p; in rip6_output()
505 ip6->ip6_hlim = hlim; in rip6_output()
[all …]
H A Dip6_output.c258 struct ip6_hdr *ip6, *mhip6; in ip6_fragment() local
294 *mhip6 = *ip6; in ip6_fragment()
427 struct ip6_hdr *ip6; in ip6_output() local
588 ip6->ip6_plen = 0; in ip6_output()
591 nexthdrp = &ip6->ip6_nxt; in ip6_output()
800 src0 = ip6->ip6_src; in ip6_output()
806 dst0 = ip6->ip6_dst; in ip6_output()
1024 odst = ip6->ip6_dst; in ip6_output()
3293 struct ip6_hdr *ip6; in ip6_mloopback() local
3332 struct ip6_hdr *ip6; in ip6_splithdr() local
[all …]
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c181 struct ip6_hdr *ip6; in nat64_direct_output_one() local
395 ip6->s6_addr8[8] = 0; in nat64_embed_ip4()
412 if (ip6->s6_addr32[3] != 0 || ip6->s6_addr32[2] != 0) in nat64_extract_ip4()
426 if (ip6->s6_addr32[3] != 0 || ip6->s6_addr8[8] != 0) in nat64_extract_ip4()
452 ia = (ip6->s6_addr32[2] << 8) | (ip6->s6_addr32[3] >> 24); in nat64_extract_ip4()
454 ia = (ip6->s6_addr32[2] >> 8) | (ip6->s6_addr32[3] << 24); in nat64_extract_ip4()
898 icmp6->icmp6_cksum = ~in6_cksum_pseudo(ip6, ntohs(ip6->ip6_plen), in nat64_icmp_handle_echo()
1188 struct ip6_hdr *ip6; in nat64_getlasthdr() local
1200 ip6 = mtodo(m, hlen); in nat64_getlasthdr()
1233 struct ip6_hdr ip6; in nat64_do_handle_ip4() local
[all …]
/f-stack/freebsd/netipsec/
H A Dipsec_output.c429 struct ip6_hdr *ip6; in ipsec6_allocsa() local
517 struct ip6_hdr *ip6; in ipsec6_perform_request() local
533 ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6)); in ipsec6_perform_request()
895 struct ip6_hdr *ip6; in ipsec_encap() local
928 in6_clearscope(&ip6->ip6_src); in ipsec_encap()
969 ip6->ip6_flow = 0; in ipsec_encap()
970 ip6->ip6_vfc = IPV6_VERSION; in ipsec_encap()
972 ip6->ip6_nxt = proto; in ipsec_encap()
976 ip6->ip6_dst.s6_addr16[1] = in ipsec_encap()
980 ip6->ip6_src.s6_addr16[1] = in ipsec_encap()
[all …]
H A Dsubr_ipsec.c99 const struct ip6_hdr *ip6; in ipsec6_setsockaddrs() local
101 if (m->m_len >= sizeof(*ip6)) in ipsec6_setsockaddrs()
102 ip6 = mtod(m, const struct ip6_hdr *); in ipsec6_setsockaddrs()
105 ip6 = &ip6buf; in ipsec6_setsockaddrs()
111 bcopy(&ip6->ip6_src, &src->sin6.sin6_addr, sizeof(ip6->ip6_src)); in ipsec6_setsockaddrs()
112 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_src)) { in ipsec6_setsockaddrs()
114 src->sin6.sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]); in ipsec6_setsockaddrs()
120 bcopy(&ip6->ip6_dst, &dst->sin6.sin6_addr, sizeof(ip6->ip6_dst)); in ipsec6_setsockaddrs()
121 if (IN6_IS_SCOPE_LINKLOCAL(&ip6->ip6_dst)) { in ipsec6_setsockaddrs()
123 dst->sin6.sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]); in ipsec6_setsockaddrs()
/f-stack/freebsd/netpfil/ipfw/nptv6/
H A Dnptv6.c115 struct ip6_hdr *ip6; in nptv6_getlasthdr() local
122 ip6 = mtodo(m, hlen); in nptv6_getlasthdr()
123 hlen += sizeof(*ip6); in nptv6_getlasthdr()
124 proto = ip6->ip6_nxt; in nptv6_getlasthdr()
142 struct ip6_hdr *ip6; in nptv6_translate_icmpv6() local
179 ip6->ip6_nxt); in nptv6_translate_icmpv6()
233 struct ip6_hdr *ip6; in nptv6_rewrite_internal() local
241 ip6->ip6_nxt); in nptv6_rewrite_internal()
291 struct ip6_hdr *ip6; in nptv6_rewrite_external() local
299 ip6->ip6_nxt); in nptv6_rewrite_external()
[all …]
/f-stack/freebsd/kern/
H A Duipc_mbufhash.c87 struct ip6_hdr ip6; in m_tcpip_hash() member
95 const struct ip6_hdr *ip6; in m_tcpip_hash() local
134 ip6 = m_common_hash_gethdr(m, off, sizeof(*ip6), &buf); in m_tcpip_hash()
135 if (ip6 == NULL) in m_tcpip_hash()
138 p = fnv_32_buf(&ip6->ip6_src, sizeof(struct in6_addr), p); in m_tcpip_hash()
139 p = fnv_32_buf(&ip6->ip6_dst, sizeof(struct in6_addr), p); in m_tcpip_hash()
145 flow = ip6->ip6_flow & IPV6_FLOWLABEL_MASK; in m_tcpip_hash()
/f-stack/freebsd/netinet/
H A Dtcp_lro.c302 struct ip6_hdr *ip6; in tcp_lro_rx_csum_fixup() local
304 ip6 = (struct ip6_hdr *)l3hdr; in tcp_lro_rx_csum_fixup()
306 cs = ip6->ip6_plen; in tcp_lro_rx_csum_fixup()
310 cx = ntohs(ip6->ip6_plen); in tcp_lro_rx_csum_fixup()
311 cs = in6_cksum_pseudo(ip6, cx, ip6->ip6_nxt, 0); in tcp_lro_rx_csum_fixup()
494 struct ip6_hdr *ip6; in tcp_flush_out_le() local
496 ip6 = le->le_ip6; in tcp_flush_out_le()
497 ip6->ip6_plen = p_len; in tcp_flush_out_le()
601 le->le_ip6 = ip6; in tcp_set_le_to_m()
603 le->dest_ip6 = ip6->ip6_dst; in tcp_set_le_to_m()
[all …]
/f-stack/freebsd/net/
H A Dif_stf.c417 struct ip6_hdr *ip6; in stf_output() local
450 if (m->m_len < sizeof(*ip6)) { in stf_output()
451 m = m_pullup(m, sizeof(*ip6)); in stf_output()
457 ip6 = mtod(m, struct ip6_hdr *); in stf_output()
465 if (IN6_IS_ADDR_6TO4(&ip6->ip6_dst)) in stf_output()
466 ptr = GET_V4(&ip6->ip6_dst); in stf_output()
615 struct ip6_hdr *ip6; in in_stf_input() local
651 if (m->m_len < sizeof(*ip6)) { in in_stf_input()
652 m = m_pullup(m, sizeof(*ip6)); in in_stf_input()
656 ip6 = mtod(m, struct ip6_hdr *); in in_stf_input()
[all …]
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_tftp_pxy.c294 ip6_t *ip6; local
330 ip6 = (ip6_t *)fin->fin_ip;
347 slen = ip6->ip6_plen;
348 ip6->ip6_plen = htons(sizeof(udp));
349 swip6.in6 = ip6->ip6_src;
350 sw2ip6.in6 = ip6->ip6_dst;
351 ip6->ip6_src = nat->nat_ndst6.in6;
352 ip6->ip6_dst = nat->nat_nsrc6.in6;
412 ip6->ip6_plen = slen;
413 ip6->ip6_src = swip6.in6;
[all …]
H A Dip_fil_freebsd.c351 ip6_t *ip6; local
394 ip6 = (ip6_t *)ip;
422 ip6->ip6_hlim = 0;
475 ip6_t *ip6 = (ip6_t *)ip; local
477 ip6->ip6_vfc = 0x60;
480 hlen = sizeof(*ip6);
520 ip6_t *ip6; local
652 ip6 = (ip6_t *)ip;
657 ip6->ip6_hlim = 0;
658 ip6->ip6_src = dst6.in6;
[all …]
/f-stack/dpdk/examples/ipsec-secgw/
H A Desp.c148 struct ip6_hdr *ip6; in esp_inbound_post() local
208 ip6 = (struct ip6_hdr *)ip4; in esp_inbound_post()
210 memmove(ip6, ip, sizeof(struct ip6_hdr)); in esp_inbound_post()
211 ip6->ip6_nxt = *nexthdr; in esp_inbound_post()
212 ip6->ip6_plen = htons(rte_pktmbuf_data_len(m) - in esp_inbound_post()
226 struct ip6_hdr *ip6; in esp_outbound() local
251 ip6 = (struct ip6_hdr *)ip4; in esp_outbound()
252 nlp = ip6->ip6_nxt; in esp_outbound()
309 esp = (struct rte_esp_hdr *)(ip6 + 1); in esp_outbound()
321 ip6 = (struct ip6_hdr *)new_ip; in esp_outbound()
[all …]

12345