Home
last modified time | relevance | path

Searched refs:sin6 (Results 1 – 25 of 60) sorted by relevance

123

/kernel/linux/linux-5.10/net/rds/
Dtcp_connect.c92 struct sockaddr_in6 sin6; in rds_tcp_conn_path_connect() local
129 sin6.sin6_family = AF_INET6; in rds_tcp_conn_path_connect()
130 sin6.sin6_addr = conn->c_laddr; in rds_tcp_conn_path_connect()
131 sin6.sin6_port = 0; in rds_tcp_conn_path_connect()
132 sin6.sin6_flowinfo = 0; in rds_tcp_conn_path_connect()
133 sin6.sin6_scope_id = conn->c_dev_if; in rds_tcp_conn_path_connect()
134 addr = (struct sockaddr *)&sin6; in rds_tcp_conn_path_connect()
135 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect()
152 sin6.sin6_family = AF_INET6; in rds_tcp_conn_path_connect()
153 sin6.sin6_addr = conn->c_faddr; in rds_tcp_conn_path_connect()
[all …]
Daf_rds.c118 struct sockaddr_in6 *sin6; in rds_getname() local
135 sin6 = (struct sockaddr_in6 *)uaddr; in rds_getname()
136 sin6->sin6_family = AF_INET6; in rds_getname()
137 sin6->sin6_port = rs->rs_conn_port; in rds_getname()
138 sin6->sin6_addr = rs->rs_conn_addr; in rds_getname()
139 sin6->sin6_flowinfo = 0; in rds_getname()
141 sin6->sin6_scope_id = rs->rs_bound_scope_id; in rds_getname()
142 uaddr_len = sizeof(*sin6); in rds_getname()
162 sin6 = (struct sockaddr_in6 *)uaddr; in rds_getname()
163 memset(sin6, 0, sizeof(*sin6)); in rds_getname()
[all …]
Drdma_transport.c248 struct sockaddr_in6 sin6; in rds_rdma_listen_init() local
262 sin6.sin6_family = PF_INET6; in rds_rdma_listen_init()
263 sin6.sin6_addr = in6addr_any; in rds_rdma_listen_init()
264 sin6.sin6_port = htons(RDS_CM_PORT); in rds_rdma_listen_init()
265 sin6.sin6_scope_id = 0; in rds_rdma_listen_init()
266 sin6.sin6_flowinfo = 0; in rds_rdma_listen_init()
268 (struct sockaddr *)&sin6, in rds_rdma_listen_init()
Dtcp_listen.c267 struct sockaddr_in6 *sin6; in rds_tcp_listen_init() local
289 sin6 = (struct sockaddr_in6 *)&ss; in rds_tcp_listen_init()
290 sin6->sin6_family = PF_INET6; in rds_tcp_listen_init()
291 sin6->sin6_addr = in6addr_any; in rds_tcp_listen_init()
292 sin6->sin6_port = (__force u16)htons(RDS_TCP_PORT); in rds_tcp_listen_init()
293 sin6->sin6_scope_id = 0; in rds_tcp_listen_init()
294 sin6->sin6_flowinfo = 0; in rds_tcp_listen_init()
295 addr_len = sizeof(*sin6); in rds_tcp_listen_init()
Dbind.c191 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)uaddr; in rds_bind() local
196 addr_type = ipv6_addr_type(&sin6->sin6_addr); in rds_bind()
206 addr4 = sin6->sin6_addr.s6_addr32[3]; in rds_bind()
214 if (sin6->sin6_scope_id == 0) in rds_bind()
216 scope_id = sin6->sin6_scope_id; in rds_bind()
218 binding_addr = &sin6->sin6_addr; in rds_bind()
219 port = sin6->sin6_port; in rds_bind()
Dib.c412 struct sockaddr_in6 sin6; in rds_ib_laddr_check() local
434 memset(&sin6, 0, sizeof(sin6)); in rds_ib_laddr_check()
435 sin6.sin6_family = AF_INET6; in rds_ib_laddr_check()
436 sin6.sin6_addr = *addr; in rds_ib_laddr_check()
437 sin6.sin6_scope_id = scope_id; in rds_ib_laddr_check()
438 sa = (struct sockaddr *)&sin6; in rds_ib_laddr_check()
Drecv.c640 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); in rds_recvmsg()
734 sin6 = (struct sockaddr_in6 *)msg->msg_name; in rds_recvmsg()
736 sin6->sin6_family = AF_INET6; in rds_recvmsg()
737 sin6->sin6_port = inc->i_hdr.h_sport; in rds_recvmsg()
738 sin6->sin6_addr = inc->i_saddr; in rds_recvmsg()
739 sin6->sin6_flowinfo = 0; in rds_recvmsg()
740 sin6->sin6_scope_id = rs->rs_bound_scope_id; in rds_recvmsg()
741 msg->msg_namelen = sizeof(*sin6); in rds_recvmsg()
/kernel/linux/linux-5.10/net/sunrpc/
Daddr.c31 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_ntop6_noscopeid() local
32 const struct in6_addr *addr = &sin6->sin6_addr; in rpc_ntop6_noscopeid()
69 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_ntop6() local
78 if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) in rpc_ntop6()
80 if (sin6->sin6_scope_id == 0) in rpc_ntop6()
84 IPV6_SCOPE_DELIMITER, sin6->sin6_scope_id); in rpc_ntop6()
163 struct sockaddr_in6 *sin6) in rpc_parse_scope_id() argument
176 if (!(ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LINKLOCAL)) in rpc_parse_scope_id()
195 sin6->sin6_scope_id = scope_id; in rpc_parse_scope_id()
202 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in rpc_pton6() local
[all …]
Dsvcauth_unix.c190 struct sockaddr_in6 sin6; in ip_map_parse() local
214 sin6.sin6_family = AF_INET6; in ip_map_parse()
216 &sin6.sin6_addr); in ip_map_parse()
220 memcpy(&sin6, &address.s6, sizeof(sin6)); in ip_map_parse()
243 ipmp = __ip_map_lookup(cd, class, &sin6.sin6_addr); in ip_map_parse()
670 struct sockaddr_in6 *sin6, sin6_storage; in svcauth_unix_set_client() local
681 sin6 = &sin6_storage; in svcauth_unix_set_client()
682 ipv6_addr_set_v4mapped(sin->sin_addr.s_addr, &sin6->sin6_addr); in svcauth_unix_set_client()
685 sin6 = svc_addr_in6(rqstp); in svcauth_unix_set_client()
698 &sin6->sin6_addr); in svcauth_unix_set_client()
/kernel/linux/linux-5.10/tools/perf/trace/beauty/
Dsockaddr.c23 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sa; in af_inet6__scnprintf() local
24 u32 flowinfo = ntohl(sin6->sin6_flowinfo); in af_inet6__scnprintf()
26 size_t printed = scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin6->sin6_port), in af_inet6__scnprintf()
27 inet_ntop(sin6->sin6_family, &sin6->sin6_addr, tmp, sizeof(tmp))); in af_inet6__scnprintf()
30 if (sin6->sin6_scope_id != 0) in af_inet6__scnprintf()
31 printed += scnprintf(bf + printed, size - printed, ", scope_id: %lu", sin6->sin6_scope_id); in af_inet6__scnprintf()
/kernel/linux/linux-5.10/net/rxrpc/
Dutils.c32 srx->transport_len = sizeof(srx->transport.sin6); in rxrpc_extract_addr_from_skb()
33 srx->transport.sin6.sin6_family = AF_INET6; in rxrpc_extract_addr_from_skb()
34 srx->transport.sin6.sin6_port = udp_hdr(skb)->source; in rxrpc_extract_addr_from_skb()
35 srx->transport.sin6.sin6_addr = ipv6_hdr(skb)->saddr; in rxrpc_extract_addr_from_skb()
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()
100 return ((u16 __force)peer->srx.transport.sin6.sin6_port - in rxrpc_peer_cmp_key()
101 (u16 __force)srx->transport.sin6.sin6_port) ?: in rxrpc_peer_cmp_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()
185 memcpy(&fl6->daddr, &peer->srx.transport.sin6.sin6_addr, in rxrpc_assess_MTU_size()
/kernel/linux/linux-5.10/net/ipv6/
Dinet6_connection_sock.c61 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) uaddr; in inet6_csk_addr2sockaddr() local
63 sin6->sin6_family = AF_INET6; in inet6_csk_addr2sockaddr()
64 sin6->sin6_addr = sk->sk_v6_daddr; in inet6_csk_addr2sockaddr()
65 sin6->sin6_port = inet_sk(sk)->inet_dport; in inet6_csk_addr2sockaddr()
67 sin6->sin6_flowinfo = 0; in inet6_csk_addr2sockaddr()
68 sin6->sin6_scope_id = ipv6_iface_scope_id(&sin6->sin6_addr, in inet6_csk_addr2sockaddr()
Dudp.c397 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); in udpv6_recvmsg()
398 sin6->sin6_family = AF_INET6; in udpv6_recvmsg()
399 sin6->sin6_port = udp_hdr(skb)->source; in udpv6_recvmsg()
400 sin6->sin6_flowinfo = 0; in udpv6_recvmsg()
404 &sin6->sin6_addr); in udpv6_recvmsg()
405 sin6->sin6_scope_id = 0; in udpv6_recvmsg()
407 sin6->sin6_addr = ipv6_hdr(skb)->saddr; in udpv6_recvmsg()
408 sin6->sin6_scope_id = in udpv6_recvmsg()
409 ipv6_iface_scope_id(&sin6->sin6_addr, in udpv6_recvmsg()
412 *addr_len = sizeof(*sin6); in udpv6_recvmsg()
[all …]
Draw.c466 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); in rawv6_recvmsg()
505 if (sin6) { in rawv6_recvmsg()
506 sin6->sin6_family = AF_INET6; in rawv6_recvmsg()
507 sin6->sin6_port = 0; in rawv6_recvmsg()
508 sin6->sin6_addr = ipv6_hdr(skb)->saddr; in rawv6_recvmsg()
509 sin6->sin6_flowinfo = 0; in rawv6_recvmsg()
510 sin6->sin6_scope_id = ipv6_iface_scope_id(&sin6->sin6_addr, in rawv6_recvmsg()
512 *addr_len = sizeof(*sin6); in rawv6_recvmsg()
774 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); in rawv6_sendmsg()
819 if (sin6) { in rawv6_sendmsg()
[all …]
Ddatagram.c281 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, uaddr); in ip6_datagram_connect_v6_only()
282 if (sin6->sin6_family != AF_INET6) in ip6_datagram_connect_v6_only()
717 struct sockaddr_in6 sin6; in ip6_datagram_recv_specific_ctl() local
727 sin6.sin6_family = AF_INET6; in ip6_datagram_recv_specific_ctl()
728 sin6.sin6_addr = ipv6_hdr(skb)->daddr; in ip6_datagram_recv_specific_ctl()
729 sin6.sin6_port = ports[1]; in ip6_datagram_recv_specific_ctl()
730 sin6.sin6_flowinfo = 0; in ip6_datagram_recv_specific_ctl()
731 sin6.sin6_scope_id = in ip6_datagram_recv_specific_ctl()
735 put_cmsg(msg, SOL_IPV6, IPV6_ORIGDSTADDR, sizeof(sin6), &sin6); in ip6_datagram_recv_specific_ctl()
/kernel/linux/linux-5.10/fs/afs/
Daddr_list.c52 srx->transport_len = sizeof(srx->transport.sin6); in afs_alloc_addrlist()
53 srx->transport.sin6.sin6_family = AF_INET6; in afs_alloc_addrlist()
54 srx->transport.sin6.sin6_port = htons(port); in afs_alloc_addrlist()
324 struct sockaddr_in6 *a = &alist->addrs[i].transport.sin6; in afs_merge_fs_addr6()
344 srx->transport_len = sizeof(srx->transport.sin6); in afs_merge_fs_addr6()
345 srx->transport.sin6.sin6_family = AF_INET6; in afs_merge_fs_addr6()
346 srx->transport.sin6.sin6_port = htons(port); in afs_merge_fs_addr6()
347 memcpy(&srx->transport.sin6.sin6_addr, xdr, 16); in afs_merge_fs_addr6()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/
Dnetwork_helpers.c231 struct sockaddr_in6 *sin6 = (void *)addr; in make_sockaddr() local
233 sin6->sin6_family = AF_INET6; in make_sockaddr()
234 sin6->sin6_port = htons(port); in make_sockaddr()
236 inet_pton(AF_INET6, addr_str, &sin6->sin6_addr) != 1) { in make_sockaddr()
241 *len = sizeof(*sin6); in make_sockaddr()
/kernel/linux/linux-5.10/include/linux/sunrpc/
Dsvc_xprt.h171 const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)sa; in svc_addr_port() local
177 return ntohs(sin6->sin6_port); in svc_addr_port()
208 const struct sockaddr_in6 *sin6 = (const struct sockaddr_in6 *)addr; in __svc_print_addr() local
218 &sin6->sin6_addr, in __svc_print_addr()
219 ntohs(sin6->sin6_port)); in __svc_print_addr()
/kernel/linux/linux-5.10/net/netfilter/
Dnf_conntrack_proto.c311 struct sockaddr_in6 sin6; in ipv6_getorigdst() local
330 if (*len < 0 || (unsigned int)*len < sizeof(sin6)) in ipv6_getorigdst()
343 sin6.sin6_family = AF_INET6; in ipv6_getorigdst()
344 sin6.sin6_port = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u.tcp.port; in ipv6_getorigdst()
345 sin6.sin6_flowinfo = flow_label & IPV6_FLOWINFO_MASK; in ipv6_getorigdst()
346 memcpy(&sin6.sin6_addr, in ipv6_getorigdst()
348 sizeof(sin6.sin6_addr)); in ipv6_getorigdst()
351 sin6.sin6_scope_id = ipv6_iface_scope_id(&sin6.sin6_addr, bound_dev_if); in ipv6_getorigdst()
352 return copy_to_user(user, &sin6, sizeof(sin6)) ? -EFAULT : 0; in ipv6_getorigdst()
/kernel/linux/linux-5.10/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c147 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) in cxgbit_create_server6() local
153 __func__, cdev->lldi.ports[0]->name, stid, sin6->sin6_port); in cxgbit_create_server6()
156 &sin6->sin6_addr); in cxgbit_create_server6()
159 (const u32 *)&sin6->sin6_addr.s6_addr, 1); in cxgbit_create_server6()
162 sin6->sin6_addr.s6_addr, ret); in cxgbit_create_server6()
171 stid, &sin6->sin6_addr, in cxgbit_create_server6()
172 sin6->sin6_port, in cxgbit_create_server6()
185 (const u32 *)&sin6->sin6_addr.s6_addr, 1); in cxgbit_create_server6()
188 ret, stid, sin6->sin6_addr.s6_addr, in cxgbit_create_server6()
189 ntohs(sin6->sin6_port)); in cxgbit_create_server6()
[all …]
/kernel/linux/linux-5.10/include/linux/lockd/
Dlockd.h320 const struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)sap; in __nlm_privileged_request6() local
322 if (ntohs(sin6->sin6_port) > 1023) in __nlm_privileged_request6()
325 if (ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_MAPPED) in __nlm_privileged_request6()
326 return ipv4_is_loopback(sin6->sin6_addr.s6_addr32[3]); in __nlm_privileged_request6()
328 return ipv6_addr_type(&sin6->sin6_addr) & IPV6_ADDR_LOOPBACK; in __nlm_privileged_request6()
/kernel/linux/linux-5.10/fs/nfsd/
Dflexfilelayout.c110 struct sockaddr_in6 *sin6; in nfsd4_ff_proc_getdeviceinfo() local
112 sin6 = (struct sockaddr_in6 *)&rqstp->rq_daddr; in nfsd4_ff_proc_getdeviceinfo()
113 port = ntohs(sin6->sin6_port); in nfsd4_ff_proc_getdeviceinfo()
/kernel/linux/linux-5.10/fs/lockd/
Dsvc.c333 struct sockaddr_in6 sin6; in lockd_inet6addr_event() local
341 sin6.sin6_family = AF_INET6; in lockd_inet6addr_event()
342 sin6.sin6_addr = ifa->addr; in lockd_inet6addr_event()
343 if (ipv6_addr_type(&sin6.sin6_addr) & IPV6_ADDR_LINKLOCAL) in lockd_inet6addr_event()
344 sin6.sin6_scope_id = ifa->idev->dev->ifindex; in lockd_inet6addr_event()
346 (struct sockaddr *)&sin6); in lockd_inet6addr_event()
/kernel/linux/linux-5.10/include/net/
Dvxlan.h194 struct sockaddr_in6 sin6; member
389 return ipv6_addr_any(&ipa->sin6.sin6_addr); in vxlan_addr_any()
397 return ipv6_addr_is_multicast(&ipa->sin6.sin6_addr); in vxlan_addr_multicast()
510 rdst->remote_ip.sin6.sin6_addr = nhc->nhc_gw.ipv6; in vxlan_fdb_nh_path_select()

123