Home
last modified time | relevance | path

Searched refs:s6_addr32 (Results 1 – 25 of 97) sorted by relevance

1234

/Linux-v5.10/tools/testing/selftests/bpf/progs/
Dbpf_iter_tcp6.c126 src->s6_addr32[0], src->s6_addr32[1], in dump_tcp6_sock()
127 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tcp6_sock()
128 dest->s6_addr32[0], dest->s6_addr32[1], in dump_tcp6_sock()
129 dest->s6_addr32[2], dest->s6_addr32[3], destp); in dump_tcp6_sock()
169 src->s6_addr32[0], src->s6_addr32[1], in dump_tw_sock()
170 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tw_sock()
171 dest->s6_addr32[0], dest->s6_addr32[1], in dump_tw_sock()
172 dest->s6_addr32[2], dest->s6_addr32[3], destp); in dump_tw_sock()
199 src->s6_addr32[0], src->s6_addr32[1], in dump_req_sock()
200 src->s6_addr32[2], src->s6_addr32[3], in dump_req_sock()
[all …]
Dbpf_iter_udp6.c64 src->s6_addr32[0], src->s6_addr32[1], in dump_udp6()
65 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_udp6()
66 dest->s6_addr32[0], dest->s6_addr32[1], in dump_udp6()
67 dest->s6_addr32[2], dest->s6_addr32[3], destp); in dump_udp6()
Dtest_tc_neigh.c30 # define v6_equal(a, b) (a.s6_addr32[0] == b.s6_addr32[0] && \
31 a.s6_addr32[1] == b.s6_addr32[1] && \
32 a.s6_addr32[2] == b.s6_addr32[2] && \
33 a.s6_addr32[3] == b.s6_addr32[3])
Dconnect6_prog.c84 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog()
85 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog()
86 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog()
87 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
Dtest_xdp.c174 memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); in handle_ipv6()
205 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
206 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); in handle_ipv6()
Dtest_xdp_loop.c170 memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); in handle_ipv6()
201 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
202 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); in handle_ipv6()
/Linux-v5.10/net/ipv6/
Dip6_checksum.c18 sum += (__force u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
19 carry = (sum < (__force u32)saddr->s6_addr32[0]); in csum_ipv6_magic()
22 sum += (__force u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
23 carry = (sum < (__force u32)saddr->s6_addr32[1]); in csum_ipv6_magic()
26 sum += (__force u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
27 carry = (sum < (__force u32)saddr->s6_addr32[2]); in csum_ipv6_magic()
30 sum += (__force u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
31 carry = (sum < (__force u32)saddr->s6_addr32[3]); in csum_ipv6_magic()
34 sum += (__force u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
35 carry = (sum < (__force u32)daddr->s6_addr32[0]); in csum_ipv6_magic()
[all …]
Daddrconf_core.c42 st = addr->s6_addr32[0]; in __ipv6_addr_type()
69 if ((addr->s6_addr32[0] | addr->s6_addr32[1]) == 0) { in __ipv6_addr_type()
70 if (addr->s6_addr32[2] == 0) { in __ipv6_addr_type()
71 if (addr->s6_addr32[3] == 0) in __ipv6_addr_type()
74 if (addr->s6_addr32[3] == htonl(0x00000001)) in __ipv6_addr_type()
82 if (addr->s6_addr32[2] == htonl(0x0000ffff)) in __ipv6_addr_type()
Dtcp_ipv6.c118 return secure_tcpv6_seq(ipv6_hdr(skb)->daddr.s6_addr32, in tcp_v6_init_seq()
119 ipv6_hdr(skb)->saddr.s6_addr32, in tcp_v6_init_seq()
126 return secure_tcpv6_ts_off(net, ipv6_hdr(skb)->daddr.s6_addr32, in tcp_v6_init_ts_off()
127 ipv6_hdr(skb)->saddr.s6_addr32); in tcp_v6_init_ts_off()
238 sin.sin_addr.s_addr = usin->sin6_addr.s6_addr32[3]; in tcp_v6_connect()
320 secure_tcpv6_seq(np->saddr.s6_addr32, in tcp_v6_connect()
321 sk->sk_v6_daddr.s6_addr32, in tcp_v6_connect()
325 np->saddr.s6_addr32, in tcp_v6_connect()
326 sk->sk_v6_daddr.s6_addr32); in tcp_v6_connect()
626 return tcp_md5_do_del(sk, (union tcp_md5_addr *)&sin6->sin6_addr.s6_addr32[3], in tcp_v6_parse_md5_keys()
[all …]
Ddatagram.c38 return ipv6_addr_v4mapped(a) && (a->s6_addr32[3] == 0); in ipv6_mapped_addr_any()
186 sin.sin_addr.s_addr = daddr->s6_addr32[3]; in __ip6_datagram_connect()
1053 src->s6_addr32[0], src->s6_addr32[1], in __ip6_dgram_sock_seq_show()
1054 src->s6_addr32[2], src->s6_addr32[3], srcp, in __ip6_dgram_sock_seq_show()
1055 dest->s6_addr32[0], dest->s6_addr32[1], in __ip6_dgram_sock_seq_show()
1056 dest->s6_addr32[2], dest->s6_addr32[3], destp, in __ip6_dgram_sock_seq_show()
/Linux-v5.10/include/net/
Dipv6.h508 return !!(((a1->s6_addr32[0] ^ a2->s6_addr32[0]) & m->s6_addr32[0]) | in ipv6_masked_addr_cmp()
509 ((a1->s6_addr32[1] ^ a2->s6_addr32[1]) & m->s6_addr32[1]) | in ipv6_masked_addr_cmp()
510 ((a1->s6_addr32[2] ^ a2->s6_addr32[2]) & m->s6_addr32[2]) | in ipv6_masked_addr_cmp()
511 ((a1->s6_addr32[3] ^ a2->s6_addr32[3]) & m->s6_addr32[3])); in ipv6_masked_addr_cmp()
568 __ipv6_addr_set_half(&addr->s6_addr32[0], w1, w2); in ipv6_addr_set()
569 __ipv6_addr_set_half(&addr->s6_addr32[2], w3, w4); in ipv6_addr_set()
581 return ((a1->s6_addr32[0] ^ a2->s6_addr32[0]) | in ipv6_addr_equal()
582 (a1->s6_addr32[1] ^ a2->s6_addr32[1]) | in ipv6_addr_equal()
583 (a1->s6_addr32[2] ^ a2->s6_addr32[2]) | in ipv6_addr_equal()
584 (a1->s6_addr32[3] ^ a2->s6_addr32[3])) == 0; in ipv6_addr_equal()
[all …]
Daddrconf.h439 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult()
448 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes()
449 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_ll_all_nodes()
450 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes()
460 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers()
461 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_ll_all_routers()
462 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers()
468 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE); in ipv6_addr_is_isatap()
479 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_solict_mult()
480 addr->s6_addr32[1] | in ipv6_addr_is_solict_mult()
[all …]
Dif_inet6.h220 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map()
253 if ((addr->s6_addr32[0] | addr->s6_addr32[1] | in ipv6_ipgre_mc_map()
254 (addr->s6_addr32[2] ^ htonl(0x0000ffff))) != 0) in ipv6_ipgre_mc_map()
256 memcpy(buf, &addr->s6_addr32[3], 4); in ipv6_ipgre_mc_map()
/Linux-v5.10/include/net/netfilter/
Dnf_queue.h64 if ((__force u32)ip6h->saddr.s6_addr32[3] < in hash_v6()
65 (__force u32)ip6h->daddr.s6_addr32[3]) { in hash_v6()
66 a = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6()
67 b = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6()
69 b = (__force u32) ip6h->saddr.s6_addr32[3]; in hash_v6()
70 a = (__force u32) ip6h->daddr.s6_addr32[3]; in hash_v6()
73 if ((__force u32)ip6h->saddr.s6_addr32[1] < in hash_v6()
74 (__force u32)ip6h->daddr.s6_addr32[1]) in hash_v6()
75 c = (__force u32) ip6h->saddr.s6_addr32[1]; in hash_v6()
77 c = (__force u32) ip6h->daddr.s6_addr32[1]; in hash_v6()
/Linux-v5.10/arch/s390/include/asm/
Dchecksum.h116 sum += (__force __u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
117 sum += (__force __u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
118 sum += (__force __u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
119 sum += (__force __u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
120 sum += (__force __u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
121 sum += (__force __u32)daddr->s6_addr32[1]; in csum_ipv6_magic()
122 sum += (__force __u32)daddr->s6_addr32[2]; in csum_ipv6_magic()
123 sum += (__force __u32)daddr->s6_addr32[3]; in csum_ipv6_magic()
/Linux-v5.10/net/netlabel/
Dnetlabel_kapi.c152 map6->list.addr.s6_addr32[0] &= mask6->s6_addr32[0]; in netlbl_cfg_unlbl_map_add()
153 map6->list.addr.s6_addr32[1] &= mask6->s6_addr32[1]; in netlbl_cfg_unlbl_map_add()
154 map6->list.addr.s6_addr32[2] &= mask6->s6_addr32[2]; in netlbl_cfg_unlbl_map_add()
155 map6->list.addr.s6_addr32[3] &= mask6->s6_addr32[3]; in netlbl_cfg_unlbl_map_add()
491 addrinfo->list.addr.s6_addr32[0] &= mask->s6_addr32[0]; in netlbl_cfg_calipso_map_add()
492 addrinfo->list.addr.s6_addr32[1] &= mask->s6_addr32[1]; in netlbl_cfg_calipso_map_add()
493 addrinfo->list.addr.s6_addr32[2] &= mask->s6_addr32[2]; in netlbl_cfg_calipso_map_add()
494 addrinfo->list.addr.s6_addr32[3] &= mask->s6_addr32[3]; in netlbl_cfg_calipso_map_add()
Dnetlabel_mgmt.c227 map->list.addr.s6_addr32[0] &= mask->s6_addr32[0]; in netlbl_mgmt_add_common()
228 map->list.addr.s6_addr32[1] &= mask->s6_addr32[1]; in netlbl_mgmt_add_common()
229 map->list.addr.s6_addr32[2] &= mask->s6_addr32[2]; in netlbl_mgmt_add_common()
230 map->list.addr.s6_addr32[3] &= mask->s6_addr32[3]; in netlbl_mgmt_add_common()
Dnetlabel_addrlist.c354 if (ntohl(mask->s6_addr32[3]) != 0xffffffff) { in netlbl_af6list_audit_addr()
358 while (ntohl(mask->s6_addr32[++iter]) == 0xffffffff) in netlbl_af6list_audit_addr()
360 mask_val = ntohl(mask->s6_addr32[iter]); in netlbl_af6list_audit_addr()
/Linux-v5.10/net/netfilter/
Dxt_iprange.c58 if (a->s6_addr32[i] != b->s6_addr32[i]) in iprange_ipv6_lt()
59 return ntohl(a->s6_addr32[i]) < ntohl(b->s6_addr32[i]); in iprange_ipv6_lt()
/Linux-v5.10/samples/bpf/
Dtc_l2_redirect_kern.c101 _htonl(ip6h->daddr.s6_addr32[0]), in _l2_to_iptun_ingress_forward()
102 _htonl(ip6h->daddr.s6_addr32[3])); in _l2_to_iptun_ingress_forward()
185 if (!is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) in _l2_to_ip6tun_ingress_redirect()
189 _htonl(ip6h->daddr.s6_addr32[0]), *ifindex); in _l2_to_ip6tun_ingress_redirect()
230 if (is_vip_addr(eth->h_proto, ip6h->daddr.s6_addr32[0])) in _drop_non_tun_vip()
Dxdp_redirect_cpu_kern.c499 cpu_hash = ip6h->saddr.s6_addr32[0] + ip6h->daddr.s6_addr32[0]; in get_ipv6_hash_ip_pair()
500 cpu_hash += ip6h->saddr.s6_addr32[1] + ip6h->daddr.s6_addr32[1]; in get_ipv6_hash_ip_pair()
501 cpu_hash += ip6h->saddr.s6_addr32[2] + ip6h->daddr.s6_addr32[2]; in get_ipv6_hash_ip_pair()
502 cpu_hash += ip6h->saddr.s6_addr32[3] + ip6h->daddr.s6_addr32[3]; in get_ipv6_hash_ip_pair()
Dxdp_tx_iptunnel_kern.c173 memcpy(vip.daddr.v6, ip6h->daddr.s6_addr32, sizeof(vip.daddr)); in handle_ipv6()
207 memcpy(ip6h->saddr.s6_addr32, tnl->saddr.v6, sizeof(tnl->saddr.v6)); in handle_ipv6()
208 memcpy(ip6h->daddr.s6_addr32, tnl->daddr.v6, sizeof(tnl->daddr.v6)); in handle_ipv6()
/Linux-v5.10/net/rds/
Dthreads.c297 if (addr1->s6_addr32[i] != addr2->s6_addr32[i]) { in rds_addr_cmp()
298 a = ntohl(addr1->s6_addr32[i]); in rds_addr_cmp()
299 b = ntohl(addr2->s6_addr32[i]); in rds_addr_cmp()
/Linux-v5.10/net/ipv6/netfilter/
Dip6t_NPT.c55 addr->s6_addr32[idx] &= mask; in ip6t_npt_map_pfx()
56 addr->s6_addr32[idx] |= ~mask & npt->dst_pfx.in6.s6_addr32[idx]; in ip6t_npt_map_pfx()
/Linux-v5.10/include/rdma/
Dib_addr.h221 if (addr->s6_addr32[0] == htonl(0xfe800000) && in rdma_link_local_addr()
222 addr->s6_addr32[1] == 0) in rdma_link_local_addr()
242 ipv4_addr = addr->s6_addr32[3]; in rdma_is_multicast_addr()

1234