Home
last modified time | relevance | path

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

12345

/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dbpf_iter_tcp6.c125 src->s6_addr32[0], src->s6_addr32[1], in dump_tcp6_sock()
126 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tcp6_sock()
127 dest->s6_addr32[0], dest->s6_addr32[1], in dump_tcp6_sock()
128 dest->s6_addr32[2], dest->s6_addr32[3], destp); in dump_tcp6_sock()
168 src->s6_addr32[0], src->s6_addr32[1], in dump_tw_sock()
169 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_tw_sock()
170 dest->s6_addr32[0], dest->s6_addr32[1], in dump_tw_sock()
171 dest->s6_addr32[2], dest->s6_addr32[3], destp); in dump_tw_sock()
198 src->s6_addr32[0], src->s6_addr32[1], in dump_req_sock()
199 src->s6_addr32[2], src->s6_addr32[3], in dump_req_sock()
[all …]
Dbpf_iter_udp6.c63 src->s6_addr32[0], src->s6_addr32[1], in dump_udp6()
64 src->s6_addr32[2], src->s6_addr32[3], srcp, in dump_udp6()
65 dest->s6_addr32[0], dest->s6_addr32[1], in dump_udp6()
66 dest->s6_addr32[2], dest->s6_addr32[3], destp); in dump_udp6()
Dxdp_features.c19 #define ipv6_addr_equal(a, b) ((a).s6_addr32[0] == (b).s6_addr32[0] && \
20 (a).s6_addr32[1] == (b).s6_addr32[1] && \
21 (a).s6_addr32[2] == (b).s6_addr32[2] && \
22 (a).s6_addr32[3] == (b).s6_addr32[3])
79 __be32 saddr = dut ? tester_addr.s6_addr32[3] in xdp_process_echo_packet()
80 : dut_addr.s6_addr32[3]; in xdp_process_echo_packet()
81 __be32 daddr = dut ? dut_addr.s6_addr32[3] in xdp_process_echo_packet()
82 : tester_addr.s6_addr32[3]; in xdp_process_echo_packet()
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])
Dtest_tc_dtime.c37 #define v6_equal(a, b) (a.s6_addr32[0] == b.s6_addr32[0] && \
38 a.s6_addr32[1] == b.s6_addr32[1] && \
39 a.s6_addr32[2] == b.s6_addr32[2] && \
40 a.s6_addr32[3] == b.s6_addr32[3])
Dconnect6_prog.c82 sa.sin6_addr.s6_addr32[0] = bpf_htonl(SRC_REWRITE_IP6_0); in connect_v6_prog()
83 sa.sin6_addr.s6_addr32[1] = bpf_htonl(SRC_REWRITE_IP6_1); in connect_v6_prog()
84 sa.sin6_addr.s6_addr32[2] = bpf_htonl(SRC_REWRITE_IP6_2); in connect_v6_prog()
85 sa.sin6_addr.s6_addr32[3] = bpf_htonl(SRC_REWRITE_IP6_3); in connect_v6_prog()
/linux-6.6.21/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.c114 return secure_tcpv6_seq(ipv6_hdr(skb)->daddr.s6_addr32, in tcp_v6_init_seq()
115 ipv6_hdr(skb)->saddr.s6_addr32, in tcp_v6_init_seq()
122 return secure_tcpv6_ts_off(net, ipv6_hdr(skb)->daddr.s6_addr32, in tcp_v6_init_ts_off()
123 ipv6_hdr(skb)->saddr.s6_addr32); in tcp_v6_init_ts_off()
235 sin.sin_addr.s_addr = usin->sin6_addr.s6_addr32[3]; in tcp_v6_connect()
325 secure_tcpv6_seq(np->saddr.s6_addr32, in tcp_v6_connect()
326 sk->sk_v6_daddr.s6_addr32, in tcp_v6_connect()
329 tp->tsoffset = secure_tcpv6_ts_off(net, np->saddr.s6_addr32, in tcp_v6_connect()
330 sk->sk_v6_daddr.s6_addr32); in tcp_v6_connect()
653 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()
192 sin.sin_addr.s_addr = daddr->s6_addr32[3]; in __ip6_datagram_connect()
1060 src->s6_addr32[0], src->s6_addr32[1], in __ip6_dgram_sock_seq_show()
1061 src->s6_addr32[2], src->s6_addr32[3], srcp, in __ip6_dgram_sock_seq_show()
1062 dest->s6_addr32[0], dest->s6_addr32[1], in __ip6_dgram_sock_seq_show()
1063 dest->s6_addr32[2], dest->s6_addr32[3], destp, in __ip6_dgram_sock_seq_show()
/linux-6.6.21/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-6.6.21/include/net/
Dipv6.h600 return !!(((a1->s6_addr32[0] ^ a2->s6_addr32[0]) & m->s6_addr32[0]) | in ipv6_masked_addr_cmp()
601 ((a1->s6_addr32[1] ^ a2->s6_addr32[1]) & m->s6_addr32[1]) | in ipv6_masked_addr_cmp()
602 ((a1->s6_addr32[2] ^ a2->s6_addr32[2]) & m->s6_addr32[2]) | in ipv6_masked_addr_cmp()
603 ((a1->s6_addr32[3] ^ a2->s6_addr32[3]) & m->s6_addr32[3])); in ipv6_masked_addr_cmp()
660 __ipv6_addr_set_half(&addr->s6_addr32[0], w1, w2); in ipv6_addr_set()
661 __ipv6_addr_set_half(&addr->s6_addr32[2], w3, w4); in ipv6_addr_set()
673 return ((a1->s6_addr32[0] ^ a2->s6_addr32[0]) | in ipv6_addr_equal()
674 (a1->s6_addr32[1] ^ a2->s6_addr32[1]) | in ipv6_addr_equal()
675 (a1->s6_addr32[2] ^ a2->s6_addr32[2]) | in ipv6_addr_equal()
676 (a1->s6_addr32[3] ^ a2->s6_addr32[3])) == 0; in ipv6_addr_equal()
[all …]
Daddrconf.h451 htonl(0xFF000000) | addr->s6_addr32[3]); in addrconf_addr_solict_mult()
460 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_nodes()
461 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_ll_all_nodes()
462 (addr->s6_addr32[3] ^ htonl(0x00000001))) == 0; in ipv6_addr_is_ll_all_nodes()
472 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_ll_all_routers()
473 addr->s6_addr32[1] | addr->s6_addr32[2] | in ipv6_addr_is_ll_all_routers()
474 (addr->s6_addr32[3] ^ htonl(0x00000002))) == 0; in ipv6_addr_is_ll_all_routers()
480 return (addr->s6_addr32[2] | htonl(0x02000000)) == htonl(0x02005EFE); in ipv6_addr_is_isatap()
491 return ((addr->s6_addr32[0] ^ htonl(0xff020000)) | in ipv6_addr_is_solict_mult()
492 addr->s6_addr32[1] | in ipv6_addr_is_solict_mult()
[all …]
Dif_inet6.h235 memcpy(buf + 2, &addr->s6_addr32[3], sizeof(__u32)); in ipv6_eth_mc_map()
268 if ((addr->s6_addr32[0] | addr->s6_addr32[1] | in ipv6_ipgre_mc_map()
269 (addr->s6_addr32[2] ^ htonl(0x0000ffff))) != 0) in ipv6_ipgre_mc_map()
271 memcpy(buf, &addr->s6_addr32[3], 4); in ipv6_ipgre_mc_map()
/linux-6.6.21/arch/s390/include/asm/
Dchecksum.h119 sum += (__force __u32)saddr->s6_addr32[0]; in csum_ipv6_magic()
120 sum += (__force __u32)saddr->s6_addr32[1]; in csum_ipv6_magic()
121 sum += (__force __u32)saddr->s6_addr32[2]; in csum_ipv6_magic()
122 sum += (__force __u32)saddr->s6_addr32[3]; in csum_ipv6_magic()
123 sum += (__force __u32)daddr->s6_addr32[0]; in csum_ipv6_magic()
124 sum += (__force __u32)daddr->s6_addr32[1]; in csum_ipv6_magic()
125 sum += (__force __u32)daddr->s6_addr32[2]; in csum_ipv6_magic()
126 sum += (__force __u32)daddr->s6_addr32[3]; in csum_ipv6_magic()
/linux-6.6.21/net/smc/
Dsmc_ib.h67 !(addr6->s6_addr32[0] | addr6->s6_addr32[1] | addr6->s6_addr32[2])) in smc_ib_gid_to_ipv4()
68 return addr6->s6_addr32[3]; in smc_ib_gid_to_ipv4()
/linux-6.6.21/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.c228 map->list.addr.s6_addr32[0] &= mask->s6_addr32[0]; in netlbl_mgmt_add_common()
229 map->list.addr.s6_addr32[1] &= mask->s6_addr32[1]; in netlbl_mgmt_add_common()
230 map->list.addr.s6_addr32[2] &= mask->s6_addr32[2]; in netlbl_mgmt_add_common()
231 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-6.6.21/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-6.6.21/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()
/linux-6.6.21/tools/testing/selftests/net/
Dioam6_parser.c517 return ((a1->s6_addr32[0] ^ a2->s6_addr32[0]) | in ipv6_addr_equal()
518 (a1->s6_addr32[1] ^ a2->s6_addr32[1]) | in ipv6_addr_equal()
519 (a1->s6_addr32[2] ^ a2->s6_addr32[2]) | in ipv6_addr_equal()
520 (a1->s6_addr32[3] ^ a2->s6_addr32[3])) == 0; in ipv6_addr_equal()
/linux-6.6.21/net/rds/
Dthreads.c299 if (addr1->s6_addr32[i] != addr2->s6_addr32[i]) { in rds_addr_cmp()
300 a = ntohl(addr1->s6_addr32[i]); in rds_addr_cmp()
301 b = ntohl(addr2->s6_addr32[i]); in rds_addr_cmp()
/linux-6.6.21/include/rdma/
Dib_addr.h199 if (addr->s6_addr32[0] == htonl(0xfe800000) && in rdma_link_local_addr()
200 addr->s6_addr32[1] == 0) in rdma_link_local_addr()
220 ipv4_addr = addr->s6_addr32[3]; in rdma_is_multicast_addr()
/linux-6.6.21/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()

12345