/kernel/linux/linux-5.10/net/rds/ |
D | af_rds.c | 119 struct sockaddr_in *sin; in rds_getname() local 128 sin = (struct sockaddr_in *)uaddr; in rds_getname() 129 memset(sin->sin_zero, 0, sizeof(sin->sin_zero)); in rds_getname() 130 sin->sin_family = AF_INET; in rds_getname() 131 sin->sin_port = rs->rs_conn_port; in rds_getname() 132 sin->sin_addr.s_addr = rs->rs_conn_addr_v4; in rds_getname() 133 uaddr_len = sizeof(*sin); in rds_getname() 153 sin = (struct sockaddr_in *)uaddr; in rds_getname() 154 memset(sin, 0, sizeof(*sin)); in rds_getname() 155 sin->sin_family = AF_UNSPEC; in rds_getname() [all …]
|
D | tcp_connect.c | 93 struct sockaddr_in sin; in rds_tcp_conn_path_connect() local 137 sin.sin_family = AF_INET; in rds_tcp_conn_path_connect() 138 sin.sin_addr.s_addr = conn->c_laddr.s6_addr32[3]; in rds_tcp_conn_path_connect() 139 sin.sin_port = 0; in rds_tcp_conn_path_connect() 140 addr = (struct sockaddr *)&sin; in rds_tcp_conn_path_connect() 141 addrlen = sizeof(sin); in rds_tcp_conn_path_connect() 160 sin.sin_family = AF_INET; in rds_tcp_conn_path_connect() 161 sin.sin_addr.s_addr = conn->c_faddr.s6_addr32[3]; in rds_tcp_conn_path_connect() 162 sin.sin_port = htons(RDS_TCP_PORT); in rds_tcp_conn_path_connect() 163 addr = (struct sockaddr *)&sin; in rds_tcp_conn_path_connect() [all …]
|
D | bind.c | 179 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in rds_bind() local 182 sin->sin_addr.s_addr == htonl(INADDR_ANY) || in rds_bind() 183 sin->sin_addr.s_addr == htonl(INADDR_BROADCAST) || in rds_bind() 184 ipv4_is_multicast(sin->sin_addr.s_addr)) in rds_bind() 186 ipv6_addr_set_v4mapped(sin->sin_addr.s_addr, &v6addr); in rds_bind() 188 port = sin->sin_port; in rds_bind()
|
D | rdma_transport.c | 250 struct sockaddr_in sin; in rds_rdma_listen_init() local 252 sin.sin_family = PF_INET; in rds_rdma_listen_init() 253 sin.sin_addr.s_addr = htonl(INADDR_ANY); in rds_rdma_listen_init() 254 sin.sin_port = htons(RDS_PORT); in rds_rdma_listen_init() 256 (struct sockaddr *)&sin, in rds_rdma_listen_init()
|
D | tcp_listen.c | 268 struct sockaddr_in *sin; in rds_tcp_listen_init() local 297 sin = (struct sockaddr_in *)&ss; in rds_tcp_listen_init() 298 sin->sin_family = PF_INET; in rds_tcp_listen_init() 299 sin->sin_addr.s_addr = INADDR_ANY; in rds_tcp_listen_init() 300 sin->sin_port = (__force u16)htons(RDS_TCP_PORT); in rds_tcp_listen_init() 301 addr_len = sizeof(*sin); in rds_tcp_listen_init()
|
D | ib.c | 414 struct sockaddr_in sin; in rds_ib_laddr_check() local 428 memset(&sin, 0, sizeof(sin)); in rds_ib_laddr_check() 429 sin.sin_family = AF_INET; in rds_ib_laddr_check() 430 sin.sin_addr.s_addr = addr->s6_addr32[3]; in rds_ib_laddr_check() 431 sa = (struct sockaddr *)&sin; in rds_ib_laddr_check()
|
/kernel/linux/linux-5.10/net/sctp/ |
D | stream_interleave.c | 187 struct sctp_stream_in *sin; in sctp_intl_retrieve_partial() local 192 sin = sctp_stream_in(&ulpq->asoc->stream, event->stream); in sctp_intl_retrieve_partial() 201 cevent->mid != sin->mid) in sctp_intl_retrieve_partial() 209 if (cevent->fsn == sin->fsn) { in sctp_intl_retrieve_partial() 223 if (cevent->fsn == sin->fsn) { in sctp_intl_retrieve_partial() 247 sin->fsn = next_fsn; in sctp_intl_retrieve_partial() 250 sin->pd_mode = 0; in sctp_intl_retrieve_partial() 266 struct sctp_stream_in *sin; in sctp_intl_retrieve_reassembled() local 272 sin = sctp_stream_in(&ulpq->asoc->stream, event->stream); in sctp_intl_retrieve_reassembled() 289 if (cevent->mid == sin->mid) { in sctp_intl_retrieve_reassembled() [all …]
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
D | umcast_user.c | 24 struct sockaddr_in *sin; in new_addr() local 26 sin = uml_kmalloc(sizeof(struct sockaddr_in), UM_GFP_KERNEL); in new_addr() 27 if (sin == NULL) { in new_addr() 32 sin->sin_family = AF_INET; in new_addr() 34 sin->sin_addr.s_addr = in_aton(addr); in new_addr() 36 sin->sin_addr.s_addr = INADDR_ANY; in new_addr() 37 sin->sin_port = htons(port); in new_addr() 38 return sin; in new_addr()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | datagram.c | 179 struct sockaddr_in sin; in __ip6_datagram_connect() local 185 sin.sin_family = AF_INET; in __ip6_datagram_connect() 186 sin.sin_addr.s_addr = daddr->s6_addr32[3]; in __ip6_datagram_connect() 187 sin.sin_port = usin->sin6_port; in __ip6_datagram_connect() 190 (struct sockaddr *) &sin, in __ip6_datagram_connect() 191 sizeof(sin)); in __ip6_datagram_connect() 453 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin, msg->msg_name); in ipv6_recv_error() 480 if (sin && ipv6_datagram_support_addr(serr)) { in ipv6_recv_error() 482 sin->sin6_family = AF_INET6; in ipv6_recv_error() 483 sin->sin6_flowinfo = 0; in ipv6_recv_error() [all …]
|
D | af_inet6.c | 514 struct sockaddr_in6 *sin = (struct sockaddr_in6 *)uaddr; in inet6_getname() local 519 sin->sin6_family = AF_INET6; in inet6_getname() 520 sin->sin6_flowinfo = 0; in inet6_getname() 521 sin->sin6_scope_id = 0; in inet6_getname() 528 sin->sin6_port = inet->inet_dport; in inet6_getname() 529 sin->sin6_addr = sk->sk_v6_daddr; in inet6_getname() 531 sin->sin6_flowinfo = np->flow_label; in inet6_getname() 534 sin->sin6_addr = np->saddr; in inet6_getname() 536 sin->sin6_addr = sk->sk_v6_rcv_saddr; in inet6_getname() 537 sin->sin6_port = inet->inet_sport; in inet6_getname() [all …]
|
/kernel/linux/linux-5.10/net/rxrpc/ |
D | utils.c | 23 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_extract_addr_from_skb() 24 srx->transport.sin.sin_family = AF_INET; in rxrpc_extract_addr_from_skb() 25 srx->transport.sin.sin_port = udp_hdr(skb)->source; in rxrpc_extract_addr_from_skb() 26 srx->transport.sin.sin_addr.s_addr = ip_hdr(skb)->saddr; in rxrpc_extract_addr_from_skb()
|
D | peer_event.c | 46 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp_rcu() 48 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_icmp_rcu() 52 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_icmp_rcu() 58 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_icmp_rcu() 63 memcpy(&srx->transport.sin.sin_addr, &ip_hdr(skb)->saddr, in rxrpc_lookup_peer_icmp_rcu() 81 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp_rcu() 83 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_icmp_rcu() 84 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_icmp_rcu()
|
D | peer_object.c | 44 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key() 45 size = sizeof(srx->transport.sin.sin_addr); in rxrpc_peer_hash_key() 46 p = (u16 *)&srx->transport.sin.sin_addr; in rxrpc_peer_hash_key() 50 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key() 93 return ((u16 __force)peer->srx.transport.sin.sin_port - in rxrpc_peer_cmp_key() 94 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_peer_cmp_key() 95 memcmp(&peer->srx.transport.sin.sin_addr, in rxrpc_peer_cmp_key() 96 &srx->transport.sin.sin_addr, in rxrpc_peer_cmp_key() 171 peer->srx.transport.sin.sin_addr.s_addr, 0, in rxrpc_assess_MTU_size()
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
D | udp.c | 310 DECLARE_SOCKADDR(struct sockaddr_nin *, sin, msg->msg_name); in nip_udp_recvmsg() 312 sin->sin_family = AF_NINET; in nip_udp_recvmsg() 313 sin->sin_port = udp_hdr(skb)->source; in nip_udp_recvmsg() 314 sin->sin_addr = nipcb(skb)->srcaddr; in nip_udp_recvmsg() 315 *addr_len = sizeof(*sin); in nip_udp_recvmsg() 412 DECLARE_SOCKADDR(struct sockaddr_nin *, sin, msg->msg_name); in nip_udp_output() 419 if (!sin) in nip_udp_output() 425 if (sin->sin_family != AF_NINET) { in nip_udp_output() 429 if (nip_addr_invalid(&sin->sin_addr)) { in nip_udp_output() 433 if (is_nip_local_addr(&sin->sin_addr)) { in nip_udp_output() [all …]
|
/kernel/linux/linux-5.10/include/linux/sunrpc/ |
D | svc_xprt.h | 138 int svc_port_is_privileged(struct sockaddr *sin); 170 const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; in svc_addr_port() local 175 return ntohs(sin->sin_port); in svc_addr_port() 207 const struct sockaddr_in *sin = (const struct sockaddr_in *)addr; in __svc_print_addr() local 212 snprintf(buf, len, "%pI4, port=%u", &sin->sin_addr, in __svc_print_addr() 213 ntohs(sin->sin_port)); in __svc_print_addr()
|
/kernel/linux/linux-5.10/tools/perf/trace/beauty/ |
D | sockaddr.c | 15 struct sockaddr_in *sin = (struct sockaddr_in *)sa; in af_inet__scnprintf() local 17 return scnprintf(bf, size, ", port: %d, addr: %s", ntohs(sin->sin_port), in af_inet__scnprintf() 18 inet_ntop(sin->sin_family, &sin->sin_addr, tmp, sizeof(tmp))); in af_inet__scnprintf()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
D | network_helpers.c | 218 struct sockaddr_in *sin = (void *)addr; in make_sockaddr() local 220 sin->sin_family = AF_INET; in make_sockaddr() 221 sin->sin_port = htons(port); in make_sockaddr() 223 inet_pton(AF_INET, addr_str, &sin->sin_addr) != 1) { in make_sockaddr() 228 *len = sizeof(*sin); in make_sockaddr()
|
/kernel/linux/linux-5.10/net/netfilter/ |
D | nf_conntrack_proto.c | 271 struct sockaddr_in sin; in getorigdst() local 274 sin.sin_family = AF_INET; in getorigdst() 275 sin.sin_port = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst() 277 sin.sin_addr.s_addr = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst() 279 memset(sin.sin_zero, 0, sizeof(sin.sin_zero)); in getorigdst() 282 &sin.sin_addr.s_addr, ntohs(sin.sin_port)); in getorigdst() 284 if (copy_to_user(user, &sin, sizeof(sin)) != 0) in getorigdst()
|
/kernel/linux/linux-5.10/net/sunrpc/ |
D | addr.c | 115 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_ntop4() local 117 return snprintf(buf, buflen, "%pI4", &sin->sin_addr); in rpc_ntop4() 145 struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_pton4() local 146 u8 *addr = (u8 *)&sin->sin_addr.s_addr; in rpc_pton4() 156 sin->sin_family = AF_INET; in rpc_pton4()
|
/kernel/linux/linux-5.10/include/net/ |
D | vxlan.h | 193 struct sockaddr_in sin; member 391 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any() 399 return ipv4_is_multicast(ipa->sin.sin_addr.s_addr); in vxlan_addr_multicast() 406 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any() 411 return ipv4_is_multicast(ipa->sin.sin_addr.s_addr); in vxlan_addr_multicast() 506 rdst->remote_ip.sin.sin_addr.s_addr = nhc->nhc_gw.ipv4; in vxlan_fdb_nh_path_select()
|
/kernel/linux/linux-5.10/fs/nfsd/ |
D | flexfilelayout.c | 103 struct sockaddr_in *sin; in nfsd4_ff_proc_getdeviceinfo() local 105 sin = (struct sockaddr_in *)&rqstp->rq_daddr; in nfsd4_ff_proc_getdeviceinfo() 106 port = ntohs(sin->sin_port); in nfsd4_ff_proc_getdeviceinfo()
|
/kernel/linux/linux-5.10/net/l2tp/ |
D | l2tp_ip.c | 523 DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); in l2tp_ip_recvmsg() 546 if (sin) { in l2tp_ip_recvmsg() 547 sin->sin_family = AF_INET; in l2tp_ip_recvmsg() 548 sin->sin_addr.s_addr = ip_hdr(skb)->saddr; in l2tp_ip_recvmsg() 549 sin->sin_port = 0; in l2tp_ip_recvmsg() 550 memset(&sin->sin_zero, 0, sizeof(sin->sin_zero)); in l2tp_ip_recvmsg() 551 *addr_len = sizeof(*sin); in l2tp_ip_recvmsg()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ip_sockglue.c | 152 struct sockaddr_in sin; in ip_cmsg_recv_dstaddr() local 163 sin.sin_family = AF_INET; in ip_cmsg_recv_dstaddr() 164 sin.sin_addr.s_addr = ip_hdr(skb)->daddr; in ip_cmsg_recv_dstaddr() 165 sin.sin_port = ports[1]; in ip_cmsg_recv_dstaddr() 166 memset(sin.sin_zero, 0, sizeof(sin.sin_zero)); in ip_cmsg_recv_dstaddr() 168 put_cmsg(msg, SOL_IP, IP_ORIGDSTADDR, sizeof(sin), &sin); in ip_cmsg_recv_dstaddr() 520 DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); in ip_recv_error() 547 if (sin && ipv4_datagram_support_addr(serr)) { in ip_recv_error() 548 sin->sin_family = AF_INET; in ip_recv_error() 549 sin->sin_addr.s_addr = *(__be32 *)(skb_network_header(skb) + in ip_recv_error() [all …]
|
/kernel/linux/linux-5.10/fs/afs/ |
D | addr_list.c | 284 struct sockaddr_in *a = &alist->addrs[i].transport.sin; in afs_merge_fs_addr4() 304 srx->transport_len = sizeof(srx->transport.sin); in afs_merge_fs_addr4() 305 srx->transport.sin.sin_family = AF_INET; in afs_merge_fs_addr4() 306 srx->transport.sin.sin_port = htons(port); in afs_merge_fs_addr4() 307 srx->transport.sin.sin_addr.s_addr = xdr; in afs_merge_fs_addr4()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | nettest.c | 250 struct sockaddr_in sin = { in tcp_md5_remote() local 261 sin.sin_port = htons(args->port); in tcp_md5_remote() 262 sin.sin_addr = args->remote_addr.in; in tcp_md5_remote() 263 addr = &sin; in tcp_md5_remote() 264 alen = sizeof(sin); in tcp_md5_remote() 799 struct sockaddr_in *sin; in socket_read_dgram() local 801 sin = (struct sockaddr_in *) addr; in socket_read_dgram() 804 sin->sin_addr = in4; in socket_read_dgram() 805 sin->sin_family = AF_INET; in socket_read_dgram() 1362 struct sockaddr_in sin = { in do_client() local [all …]
|