Home
last modified time | relevance | path

Searched refs:sin6_addr (Results 1 – 25 of 184) sorted by relevance

12345678

/linux-6.6.21/net/sctp/
Dipv6.c89 addr->a.v6.sin6_addr = ifa->addr; in sctp_inet6addr_event()
103 ipv6_addr_equal(&addr->a.v6.sin6_addr, in sctp_inet6addr_event()
291 fl6->daddr = daddr->v6.sin6_addr; in sctp_v6_get_dst()
294 if (ipv6_addr_type(&daddr->v6.sin6_addr) & IPV6_ADDR_LINKLOCAL) in sctp_v6_get_dst()
316 fl6->saddr = saddr->v6.sin6_addr; in sctp_v6_get_dst()
382 fl6->saddr = laddr->a.v6.sin6_addr; in sctp_v6_get_dst()
391 &laddr->a.v6.sin6_addr, bdst->dev, 1)) { in sctp_v6_get_dst()
436 return ipv6_addr_diff(&s1->v6.sin6_addr, &s2->v6.sin6_addr); in sctp_v6_addr_match_len()
453 saddr->v6.sin6_addr = fl6->saddr; in sctp_v6_get_saddr()
477 addr->a.v6.sin6_addr = ifp->addr; in sctp_v6_copy_addrlist()
[all …]
Ddiag.c47 *(struct in6_addr *)r->id.idiag_src = laddr.v6.sin6_addr; in inet_diag_msg_sctpasoc_fill()
48 *(struct in6_addr *)r->id.idiag_dst = paddr.v6.sin6_addr; in inet_diag_msg_sctpasoc_fill()
445 memcpy(&laddr.v6.sin6_addr, req->id.idiag_src, in sctp_diag_dump_one()
446 sizeof(laddr.v6.sin6_addr)); in sctp_diag_dump_one()
450 memcpy(&paddr.v6.sin6_addr, req->id.idiag_dst, in sctp_diag_dump_one()
451 sizeof(paddr.v6.sin6_addr)); in sctp_diag_dump_one()
/linux-6.6.21/include/linux/sunrpc/
Daddr.h77 if (!ipv6_addr_equal(&sin1->sin6_addr, &sin2->sin6_addr)) in rpc_cmp_addr6()
79 else if (ipv6_addr_type(&sin1->sin6_addr) & IPV6_ADDR_LINKLOCAL) in rpc_cmp_addr6()
92 dsin6->sin6_addr = ssin6->sin6_addr; in __rpc_copy_addr6()
/linux-6.6.21/samples/bpf/
Dmap_perf_test_user.c168 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()
192 if (in6.sin6_addr.s6_addr32[3] < in do_test_lru()
194 in6.sin6_addr.s6_addr32[3] += 32; in do_test_lru()
196 in6.sin6_addr.s6_addr32[3] = 0; in do_test_lru()
Dtest_map_in_map_user.c85 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()
92 in6.sin6_addr.s6_addr16[7] = i; in test_map_in_map()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
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_udp_tunnel.c39 memcpy(&udp6_addr.sin6_addr, &cfg->local_ip6, in udp_sock_create6()
40 sizeof(udp6_addr.sin6_addr)); in udp_sock_create6()
50 memcpy(&udp6_addr.sin6_addr, &cfg->peer_ip6, in udp_sock_create6()
51 sizeof(udp6_addr.sin6_addr)); in udp_sock_create6()
Ddatagram.c169 if (ipv6_addr_any(&usin->sin6_addr)) { in __ip6_datagram_connect()
175 &usin->sin6_addr); in __ip6_datagram_connect()
177 usin->sin6_addr = in6addr_loopback; in __ip6_datagram_connect()
180 addr_type = ipv6_addr_type(&usin->sin6_addr); in __ip6_datagram_connect()
182 daddr = &usin->sin6_addr; in __ip6_datagram_connect()
411 mtu_info->ip6m_addr.sin6_addr = ipv6_hdr(skb)->daddr; in ipv6_local_rxpmtu()
495 sin->sin6_addr = ip6h->daddr; in ipv6_recv_error()
499 ipv6_iface_scope_id(&sin->sin6_addr, in ipv6_recv_error()
503 &sin->sin6_addr); in ipv6_recv_error()
518 sin->sin6_addr = ipv6_hdr(skb)->saddr; in ipv6_recv_error()
[all …]
/linux-6.6.21/drivers/net/vxlan/
Dvxlan_private.h83 return ipv6_addr_equal(&a->sin6.sin6_addr, &b->sin6.sin6_addr); in vxlan_addr_equal()
92 ip->sin6.sin6_addr = nla_get_in6_addr(nla); in vxlan_nla_get_addr()
108 return nla_put_in6_addr(skb, attr, &ip->sin6.sin6_addr); in vxlan_nla_put_addr()
116 return ipv6_addr_is_multicast(&ip->sin6.sin6_addr); in vxlan_addr_is_multicast()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dconnect_ping.c29 .sin6_addr = IN6ADDR_LOOPBACK_INIT, in subtest()
84 if (!ASSERT_EQ(memcmp(&sa6.sin6_addr, in subtest()
86 sizeof(sa6.sin6_addr)), in subtest()
Dselect_reuseport.c145 sa->v6.sin6_addr = in6addr_loopback; in sa46_init_loopback()
155 sa->v6.sin6_addr = in6addr_any; in sa46_init_inany()
265 expected.bind_inany = !srv_sa.v6.sin6_addr.s6_addr32[3] && in check_data()
266 !srv_sa.v6.sin6_addr.s6_addr32[2] && in check_data()
267 !srv_sa.v6.sin6_addr.s6_addr32[1] && in check_data()
268 !srv_sa.v6.sin6_addr.s6_addr32[0]; in check_data()
270 memcpy(&expected.skb_addrs[0], cli_sa.v6.sin6_addr.s6_addr32, in check_data()
271 sizeof(cli_sa.v6.sin6_addr)); in check_data()
/linux-6.6.21/tools/testing/selftests/net/
Dsk_connect_zero_addr.c15 .sin6_addr = {}, in main()
19 inet_pton(AF_INET6, "::", &bind_addr.sin6_addr); in main()
Dsk_bind_sendto_listen.c15 .sin6_addr = {}, in main()
19 inet_pton(AF_INET6, "::", &bind_addr.sin6_addr); in main()
Dreuseport_addr_any.c58 addr6.sin6_addr = in6addr_any; in build_rcv_fd()
59 else if (!inet_pton(family, addr_str, &addr6.sin6_addr)) in build_rcv_fd()
127 saddr6.sin6_addr = in6addr_any; in connect_and_send()
130 if (!inet_pton(family, IP6_ADDR, &daddr6.sin6_addr)) in connect_and_send()
Dstress_reuseport_listen.c34 err = inet_pton(AF_INET6, IP6_LADDR_START, &sa6.sin6_addr); in bind_reuseport_sock6()
63 sa6.sin6_addr.s6_addr32[3]++; in bind_reuseport_sock6()
Dreuseport_bpf_cpu.c52 addr6->sin6_addr = in6addr_any; in build_rcv_group()
117 saddr6->sin6_addr = in6addr_any; in send_from_cpu()
122 daddr6->sin6_addr = in6addr_loopback; in send_from_cpu()
Dreuseport_bpf_numa.c48 addr6->sin6_addr = in6addr_any; in build_rcv_group()
129 saddr6->sin6_addr = in6addr_any; in send_from_node()
134 daddr6->sin6_addr = in6addr_loopback; in send_from_node()
/linux-6.6.21/include/trace/events/
Dnet_probe_common.h28 v6->sin6_addr = inet6_sk(sk)->saddr; \
32 v6->sin6_addr = sk->sk_v6_daddr; \
/linux-6.6.21/net/core/
Dutils.c330 if (in6_pton(src, srclen, (u8 *)&addr6->sin6_addr.s6_addr, in inet6_pton()
334 if (ipv6_addr_type(&addr6->sin6_addr) & IPV6_ADDR_LINKLOCAL && in inet6_pton()
407 { .sin6_addr = IN6ADDR_ANY_INIT }; in inet_addr_is_any()
409 if (!memcmp(in6->sin6_addr.s6_addr, in inet_addr_is_any()
410 in6_any.sin6_addr.s6_addr, 16)) in inet_addr_is_any()
/linux-6.6.21/net/sunrpc/
Daddr.c32 const struct in6_addr *addr = &sin6->sin6_addr; in rpc_ntop6_noscopeid()
78 if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) in rpc_ntop6()
176 if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) in rpc_parse_scope_id()
203 u8 *addr = (u8 *)&sin6->sin6_addr.in6_u; in rpc_pton6()
/linux-6.6.21/net/rxrpc/
Dpeer_object.c51 size = sizeof(srx->transport.sin6.sin6_addr); in rxrpc_peer_hash_key()
52 p = (u16 *)&srx->transport.sin6.sin6_addr; in rxrpc_peer_hash_key()
102 memcmp(&peer->srx.transport.sin6.sin6_addr, in rxrpc_peer_cmp_key()
103 &srx->transport.sin6.sin6_addr, in rxrpc_peer_cmp_key()
183 memcpy(&fl6->daddr, &peer->srx.transport.sin6.sin6_addr, in rxrpc_assess_MTU_size()
/linux-6.6.21/net/rds/
Dbind.c196 addr_type = ipv6_addr_type(&sin6->sin6_addr); in rds_bind()
206 addr4 = sin6->sin6_addr.s6_addr32[3]; in rds_bind()
218 binding_addr = &sin6->sin6_addr; in rds_bind()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dclip_tbl.c91 ret = memcmp(lip, cte->addr6.sin6_addr.s6_addr, in cxgb4_clip_get()
116 memcpy(ce->addr6.sin6_addr.s6_addr, in cxgb4_clip_get()
125 ret, ce->addr6.sin6_addr.s6_addr); in cxgb4_clip_get()
163 ret = memcmp(lip, cte->addr6.sin6_addr.s6_addr, in cxgb4_clip_release()
/linux-6.6.21/fs/nfs/
Dfscache.c67 !nfs_append_int(key, _len, sin6->sin6_addr.s6_addr32[0]) || in nfs_fscache_get_client_key()
68 !nfs_append_int(key, _len, sin6->sin6_addr.s6_addr32[1]) || in nfs_fscache_get_client_key()
69 !nfs_append_int(key, _len, sin6->sin6_addr.s6_addr32[2]) || in nfs_fscache_get_client_key()
70 !nfs_append_int(key, _len, sin6->sin6_addr.s6_addr32[3])) in nfs_fscache_get_client_key()
/linux-6.6.21/include/linux/lockd/
Dlockd.h339 if (ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_MAPPED) in __nlm_privileged_request6()
340 return ipv4_is_loopback(sin6->sin6_addr.s6_addr32[3]); in __nlm_privileged_request6()
342 return ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LOOPBACK; in __nlm_privileged_request6()

12345678