Home
last modified time | relevance | path

Searched refs:in6 (Results 1 – 25 of 103) sorted by relevance

12345

/linux-6.6.21/include/trace/events/
Dfib6.h39 struct in6_addr *in6;
49 in6 = (struct in6_addr *)__entry->src;
50 *in6 = flp->saddr;
52 in6 = (struct in6_addr *)__entry->dst;
53 *in6 = flp->daddr;
71 in6 = (struct in6_addr *)__entry->gw;
72 *in6 = in6addr_any;
74 in6 = (struct in6_addr *)__entry->gw;
75 *in6 = res->nh->fib_nh_gw6;
Dfib.h40 struct in6_addr *in6;
75 in6 = (struct in6_addr *)__entry->gw6;
76 *in6 = in6addr_any;
81 in6 = (struct in6_addr *)__entry->gw6;
82 *in6 = nhc->nhc_gw.ipv6;
88 in6 = (struct in6_addr *)__entry->gw6;
89 *in6 = in6addr_any;
Dbridge.h142 struct in6_addr *in6;
156 in6 = (struct in6_addr *)__entry->src;
157 ipv6_addr_set_v4mapped(group->src.ip4, in6);
159 in6 = (struct in6_addr *)__entry->grp;
160 ipv6_addr_set_v4mapped(group->dst.ip4, in6);
168 in6 = (struct in6_addr *)__entry->src;
169 *in6 = group->src.ip6;
171 in6 = (struct in6_addr *)__entry->grp;
172 *in6 = group->dst.ip6;
/linux-6.6.21/net/ipv6/netfilter/
Dip6t_NPT.c25 ipv6_addr_prefix(&pfx, &npt->src_pfx.in6, npt->src_pfx_len); in ip6t_npt_checkentry()
26 if (!ipv6_addr_equal(&pfx, &npt->src_pfx.in6)) in ip6t_npt_checkentry()
28 ipv6_addr_prefix(&pfx, &npt->dst_pfx.in6, npt->dst_pfx_len); in ip6t_npt_checkentry()
29 if (!ipv6_addr_equal(&pfx, &npt->dst_pfx.in6)) in ip6t_npt_checkentry()
32 src_sum = csum_partial(&npt->src_pfx.in6, sizeof(npt->src_pfx.in6), 0); in ip6t_npt_checkentry()
33 dst_sum = csum_partial(&npt->dst_pfx.in6, sizeof(npt->dst_pfx.in6), 0); in ip6t_npt_checkentry()
56 addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx]; in ip6t_npt_map_pfx()
113 if (ipv6_addr_cmp(&bounced_pfx, &npt->src_pfx.in6) == 0) in ip6t_snpt_tg()
138 if (ipv6_addr_cmp(&bounced_pfx, &npt->src_pfx.in6) == 0) in ip6t_dnpt_tg()
/linux-6.6.21/net/netfilter/
Dxt_iprange.c73 m = iprange_ipv6_lt(&iph->saddr, &info->src_min.in6); in iprange_mt6()
74 m |= iprange_ipv6_lt(&info->src_max.in6, &iph->saddr); in iprange_mt6()
80 &info->src_min.in6, in iprange_mt6()
81 &info->src_max.in6); in iprange_mt6()
86 m = iprange_ipv6_lt(&iph->daddr, &info->dst_min.in6); in iprange_mt6()
87 m |= iprange_ipv6_lt(&info->dst_max.in6, &iph->daddr); in iprange_mt6()
93 &info->dst_min.in6, in iprange_mt6()
94 &info->dst_max.in6); in iprange_mt6()
Dxt_ipvs.c41 return ipv6_masked_addr_cmp(&kaddr->in6, &umask->in6, in ipvs_mt_addrcmp()
42 &uaddr->in6) == 0; in ipvs_mt_addrcmp()
Dxt_policy.c29 return ipv6_masked_addr_cmp(&a1->in6, &m->in6, &a2->in6) == 0; in xt_addr_cmp()
/linux-6.6.21/samples/bpf/
Dtest_map_in_map_user.c75 struct sockaddr_in6 in6 = { .sin6_family = AF_INET6 }; in test_map_in_map() local
85 in6.sin6_addr.s6_addr16[0] = 0xdead; in test_map_in_map()
86 in6.sin6_addr.s6_addr16[1] = 0xbeef; in test_map_in_map()
87 in6.sin6_port = port_key; in test_map_in_map()
92 in6.sin6_addr.s6_addr16[7] = i; in test_map_in_map()
93 ret = connect(-1, (struct sockaddr *)&in6, sizeof(in6)); in test_map_in_map()
Dmap_perf_test_user.c124 struct sockaddr_in6 in6 = { .sin6_family = AF_INET6 }; in do_test_lru() local
168 in6.sin6_addr.s6_addr16[0] = 0xdead; in do_test_lru()
169 in6.sin6_addr.s6_addr16[1] = 0xbeef; in do_test_lru()
173 in6.sin6_addr.s6_addr16[2] = 0; in do_test_lru()
176 in6.sin6_addr.s6_addr16[2] = 1; in do_test_lru()
179 in6.sin6_addr.s6_addr16[2] = 2; in do_test_lru()
182 in6.sin6_addr.s6_addr16[2] = 3; in do_test_lru()
183 in6.sin6_addr.s6_addr32[3] = 0; in do_test_lru()
190 ret = connect(-1, (const struct sockaddr *)&in6, sizeof(in6)); in do_test_lru()
192 if (in6.sin6_addr.s6_addr32[3] < in do_test_lru()
[all …]
Dtest_map_in_map.bpf.c107 int BPF_KSYSCALL(trace_sys_connect, unsigned int fd, struct sockaddr_in6 *in6, int addrlen) in BPF_KSYSCALL() argument
115 if (addrlen != sizeof(*in6)) in BPF_KSYSCALL()
118 ret = bpf_probe_read_user(dst6, sizeof(dst6), &in6->sin6_addr); in BPF_KSYSCALL()
129 ret = bpf_probe_read_user(&port, sizeof(port), &in6->sin6_port); in BPF_KSYSCALL()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dskeleton.c56 CHECK(rodata->in.in6 != 0, "in6", "got %d != exp %d\n", rodata->in.in6, 0); in test_skeleton()
70 rodata->in.in6 = 14; in test_skeleton()
85 CHECK(rodata->in.in6 != 14, "in6", "got %d != exp %d\n", rodata->in.in6, 14); in test_skeleton()
/linux-6.6.21/net/netfilter/ipset/
Dip_set_hash_netnet.c299 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netnet6_data_equal()
300 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netnet6_data_equal()
347 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip[0].in6) || in hash_netnet6_data_list()
348 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip[1].in6) || in hash_netnet6_data_list()
396 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netnet6_kadt()
397 ip6addrptr(skb, opt->flags & IPSET_DIM_TWO_SRC, &e.ip[1].in6); in hash_netnet6_kadt()
403 if (e.cidr[0] == HOST_MASK && ipv6_addr_any(&e.ip[0].in6)) in hash_netnet6_kadt()
458 if (e.cidr[0] == HOST_MASK && ipv6_addr_any(&e.ip[0].in6)) in hash_netnet6_uadt()
Dip_set_hash_ip.c187 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6); in hash_ip6_data_equal()
193 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &e->ip.in6)) in hash_ip6_data_list()
225 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ip6_kadt()
227 if (ipv6_addr_any(&e.ip.in6)) in hash_ip6_kadt()
266 if (ipv6_addr_any(&e.ip.in6)) in hash_ip6_uadt()
Dip_set_hash_ipportip.c223 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipportip6_data_equal()
224 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) && in hash_ipportip6_data_equal()
233 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipportip6_data_list()
234 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip2.in6) || in hash_ipportip6_data_list()
272 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportip6_kadt()
273 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2.in6); in hash_ipportip6_kadt()
Dip_set_hash_ipportnet.c323 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipportnet6_data_equal()
324 ipv6_addr_equal(&ip1->ip2.in6, &ip2->ip2.in6) && in hash_ipportnet6_data_equal()
361 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipportnet6_data_list()
362 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip2.in6) || in hash_ipportnet6_data_list()
409 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipportnet6_kadt()
410 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip2.in6); in hash_ipportnet6_kadt()
Dip_set_hash_ipport.c226 return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && in hash_ipport6_data_equal()
235 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip.in6) || in hash_ipport6_data_list()
274 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipport6_kadt()
276 if (ipv6_addr_any(&e.ip.in6)) in hash_ipport6_kadt()
319 if (ipv6_addr_any(&e.ip.in6)) in hash_ipport6_uadt()
Dip_set_hash_netportnet.c357 return ipv6_addr_equal(&ip1->ip[0].in6, &ip2->ip[0].in6) && in hash_netportnet6_data_equal()
358 ipv6_addr_equal(&ip1->ip[1].in6, &ip2->ip[1].in6) && in hash_netportnet6_data_equal()
408 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &data->ip[0].in6) || in hash_netportnet6_data_list()
409 nla_put_ipaddr6(skb, IPSET_ATTR_IP2, &data->ip[1].in6) || in hash_netportnet6_data_list()
464 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip[0].in6); in hash_netportnet6_kadt()
465 ip6addrptr(skb, opt->flags & IPSET_DIM_THREE_SRC, &e.ip[1].in6); in hash_netportnet6_kadt()
Dip_set_hash_ipmac.c162 return ipv6_addr_equal(&e1->ip.in6, &e2->ip.in6) && in hash_ipmac6_data_equal()
169 if (nla_put_ipaddr6(skb, IPSET_ATTR_IP, &e->ip.in6) || in hash_ipmac6_data_list()
220 ip6addrptr(skb, opt->flags & IPSET_DIM_ONE_SRC, &e.ip.in6); in hash_ipmac6_kadt()
/linux-6.6.21/drivers/infiniband/hw/ocrdma/
Docrdma.h530 struct in6_addr in6; in ocrdma_resolve_dmac() local
532 memcpy(&in6, rdma_ah_read_grh(ah_attr)->dgid.raw, sizeof(in6)); in ocrdma_resolve_dmac()
533 if (rdma_is_multicast_addr(&in6)) in ocrdma_resolve_dmac()
534 rdma_get_mcast_mac(&in6, mac_addr); in ocrdma_resolve_dmac()
535 else if (rdma_link_local_addr(&in6)) in ocrdma_resolve_dmac()
536 rdma_get_ll_mac(&in6, mac_addr); in ocrdma_resolve_dmac()
/linux-6.6.21/net/core/
Dnetpoll.c438 udph->check = csum_ipv6_magic(&np->local_ip.in6, in netpoll_send_udp()
439 &np->remote_ip.in6, in netpoll_send_udp()
458 ip6h->saddr = np->local_ip.in6; in netpoll_send_udp()
459 ip6h->daddr = np->remote_ip.in6; in netpoll_send_udp()
508 np_info(np, "local IPv6 address %pI6c\n", &np->local_ip.in6); in netpoll_print_options()
514 np_info(np, "remote IPv6 address %pI6c\n", &np->remote_ip.in6); in netpoll_print_options()
530 if (in6_pton(str, -1, addr->in6.s6_addr, -1, &end) > 0) { in netpoll_parse_ip_addr()
757 !!(ipv6_addr_type(&np->remote_ip.in6) & IPV6_ADDR_LINKLOCAL)) in netpoll_setup()
759 np->local_ip.in6 = ifp->addr; in netpoll_setup()
770 np_info(np, "local IPv6 %pI6c\n", &np->local_ip.in6); in netpoll_setup()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtest_skeleton.c26 const int in6; member
80 out6 = in.in6; in handler()
/linux-6.6.21/drivers/crypto/vmx/
Daesp8-ppc.pl702 my ($in0, $in1, $in2, $in3, $in4, $in5, $in6, $in7 )=map("v$_",(0..3,10..13));
816 lvx_u $in6,$x60,$inp
823 le?vperm $in6,$in6,$in6,$inpperm
827 vxor $out6,$in6,$rndkey0
935 vxor $in6,$in6,v31
954 vncipherlast $out7,$out7,$in6
956 lvx_u $in6,$x60,$inp
965 le?vperm $in6,$in6,$in6,$inpperm
985 vxor $out6,$in6,$rndkey0
1080 vxor $in6,$in6,v31
[all …]
/linux-6.6.21/drivers/infiniband/hw/mlx4/
Dah.c84 struct in6_addr in6; in create_iboe_ah() local
89 memcpy(&in6, grh->dgid.raw, sizeof(in6)); in create_iboe_ah()
90 if (rdma_is_multicast_addr(&in6)) in create_iboe_ah()
/linux-6.6.21/Documentation/devicetree/bindings/hwmon/
Dlm87.txt14 - has-in6: When set, pin 5 is configured to be used as voltage input
15 in6. Otherwise the pin is set as FAN1 input.
/linux-6.6.21/net/netfilter/ipvs/
Dip_vs_xmit.c495 dst = __ip_vs_route_output_v6(net, &dest->addr.in6, in __ip_vs_get_out_rt_v6()
496 &dest_dst->dst_saddr.in6, in __ip_vs_get_out_rt_v6()
509 &dest->addr.in6, &dest_dst->dst_saddr.in6, in __ip_vs_get_out_rt_v6()
513 *ret_saddr = dest_dst->dst_saddr.in6; in __ip_vs_get_out_rt_v6()
858 &cp->daddr.in6, in ip_vs_nat_xmit_v6()
886 ipv6_addr_type(&cp->daddr.in6) & IPV6_ADDR_LOOPBACK) { in ip_vs_nat_xmit_v6()
903 ipv6_hdr(skb)->daddr = cp->daddr.in6; in ip_vs_nat_xmit_v6()
1281 &cp->daddr.in6, in ip_vs_tunnel_xmit_v6()
1365 udp6_set_csum(!check, skb, &saddr, &cp->daddr.in6, skb->len); in ip_vs_tunnel_xmit_v6()
1382 iph->daddr = cp->daddr.in6; in ip_vs_tunnel_xmit_v6()
[all …]

12345