/linux-6.1.9/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 | 94 struct sockaddr_in sin; in rds_tcp_conn_path_connect() local 141 sin.sin_family = AF_INET; in rds_tcp_conn_path_connect() 142 sin.sin_addr.s_addr = conn->c_laddr.s6_addr32[3]; in rds_tcp_conn_path_connect() 143 sin.sin_port = 0; in rds_tcp_conn_path_connect() 144 addr = (struct sockaddr *)&sin; in rds_tcp_conn_path_connect() 145 addrlen = sizeof(sin); in rds_tcp_conn_path_connect() 164 sin.sin_family = AF_INET; in rds_tcp_conn_path_connect() 165 sin.sin_addr.s_addr = conn->c_faddr.s6_addr32[3]; in rds_tcp_conn_path_connect() 166 sin.sin_port = htons(RDS_TCP_PORT); in rds_tcp_conn_path_connect() 167 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 | tcp_listen.c | 271 struct sockaddr_in *sin; in rds_tcp_listen_init() local 300 sin = (struct sockaddr_in *)&ss; in rds_tcp_listen_init() 301 sin->sin_family = PF_INET; in rds_tcp_listen_init() 302 sin->sin_addr.s_addr = INADDR_ANY; in rds_tcp_listen_init() 303 sin->sin_port = (__force u16)htons(RDS_TCP_PORT); in rds_tcp_listen_init() 304 addr_len = sizeof(*sin); in rds_tcp_listen_init()
|
D | rdma_transport.c | 251 struct sockaddr_in sin; in rds_rdma_listen_init() local 253 sin.sin_family = PF_INET; in rds_rdma_listen_init() 254 sin.sin_addr.s_addr = htonl(INADDR_ANY); in rds_rdma_listen_init() 255 sin.sin_port = htons(RDS_PORT); in rds_rdma_listen_init() 257 (struct sockaddr *)&sin, in rds_rdma_listen_init()
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/net/ipv6/ ! |
D | datagram.c | 184 struct sockaddr_in sin; in __ip6_datagram_connect() local 190 sin.sin_family = AF_INET; in __ip6_datagram_connect() 191 sin.sin_addr.s_addr = daddr->s6_addr32[3]; in __ip6_datagram_connect() 192 sin.sin_port = usin->sin6_port; in __ip6_datagram_connect() 195 (struct sockaddr *) &sin, in __ip6_datagram_connect() 196 sizeof(sin)); in __ip6_datagram_connect() 458 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin, msg->msg_name); in ipv6_recv_error() 485 if (sin && ipv6_datagram_support_addr(serr)) { in ipv6_recv_error() 487 sin->sin6_family = AF_INET6; in ipv6_recv_error() 488 sin->sin6_flowinfo = 0; in ipv6_recv_error() [all …]
|
D | af_inet6.c | 531 struct sockaddr_in6 *sin = (struct sockaddr_in6 *)uaddr; in inet6_getname() local 536 sin->sin6_family = AF_INET6; in inet6_getname() 537 sin->sin6_flowinfo = 0; in inet6_getname() 538 sin->sin6_scope_id = 0; in inet6_getname() 547 sin->sin6_port = inet->inet_dport; in inet6_getname() 548 sin->sin6_addr = sk->sk_v6_daddr; in inet6_getname() 550 sin->sin6_flowinfo = np->flow_label; in inet6_getname() 551 BPF_CGROUP_RUN_SA_PROG(sk, (struct sockaddr *)sin, in inet6_getname() 555 sin->sin6_addr = np->saddr; in inet6_getname() 557 sin->sin6_addr = sk->sk_v6_rcv_saddr; in inet6_getname() [all …]
|
/linux-6.1.9/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()
|
/linux-6.1.9/net/rxrpc/ ! |
D | peer_event.c | 64 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp_rcu() 66 srx->transport.sin.sin_port = udp->dest; in rxrpc_lookup_peer_icmp_rcu() 67 memcpy(&srx->transport.sin.sin_addr, &ip->daddr, in rxrpc_lookup_peer_icmp_rcu() 73 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp_rcu() 75 srx->transport.sin.sin_port = udp->dest; in rxrpc_lookup_peer_icmp_rcu() 76 memcpy(&srx->transport.sin.sin_addr, &ip->daddr, in rxrpc_lookup_peer_icmp_rcu() 130 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp6_rcu() 132 srx->transport.sin.sin_port = udp->dest; in rxrpc_lookup_peer_icmp6_rcu() 133 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_icmp6_rcu() 138 srx->transport.sin.sin_port = udp->dest; in rxrpc_lookup_peer_icmp6_rcu() [all …]
|
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_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()
|
D | local_object.c | 51 return ((u16 __force)local->srx.transport.sin.sin_port - in rxrpc_local_cmp_key() 52 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_local_cmp_key() 53 memcmp(&local->srx.transport.sin.sin_addr, in rxrpc_local_cmp_key() 54 &srx->transport.sin.sin_addr, in rxrpc_local_cmp_key() 122 udp_conf.local_ip = srx->transport.sin.sin_addr; in rxrpc_open_socket() 123 udp_conf.local_udp_port = srx->transport.sin.sin_port; in rxrpc_open_socket()
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ ! |
D | bind_perm.c | 26 struct sockaddr_in *sin; in try_bind() local 34 sin = (struct sockaddr_in *)&addr; in try_bind() 35 sin->sin_family = family; in try_bind() 36 sin->sin_port = htons(port); in try_bind()
|
/linux-6.1.9/include/linux/sunrpc/ ! |
D | svc_xprt.h | 142 int svc_port_is_privileged(struct sockaddr *sin); 175 const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; in svc_addr_port() local 180 return ntohs(sin->sin_port); in svc_addr_port() 212 const struct sockaddr_in *sin = (const struct sockaddr_in *)addr; in __svc_print_addr() local 217 snprintf(buf, len, "%pI4, port=%u", &sin->sin_addr, in __svc_print_addr() 218 ntohs(sin->sin_port)); in __svc_print_addr()
|
/linux-6.1.9/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()
|
/linux-6.1.9/net/netfilter/ ! |
D | nf_conntrack_proto.c | 284 struct sockaddr_in sin; in getorigdst() local 287 sin.sin_family = AF_INET; in getorigdst() 288 sin.sin_port = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst() 290 sin.sin_addr.s_addr = ct->tuplehash[IP_CT_DIR_ORIGINAL] in getorigdst() 292 memset(sin.sin_zero, 0, sizeof(sin.sin_zero)); in getorigdst() 295 &sin.sin_addr.s_addr, ntohs(sin.sin_port)); in getorigdst() 297 if (copy_to_user(user, &sin, sizeof(sin)) != 0) in getorigdst()
|
/linux-6.1.9/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()
|
/linux-6.1.9/drivers/net/vxlan/ ! |
D | vxlan_private.h | 85 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal() 93 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal()
|
/linux-6.1.9/tools/testing/selftests/bpf/ ! |
D | network_helpers.c | 346 struct sockaddr_in *sin = (void *)addr; in make_sockaddr() local 348 memset(addr, 0, sizeof(*sin)); in make_sockaddr() 349 sin->sin_family = AF_INET; in make_sockaddr() 350 sin->sin_port = htons(port); in make_sockaddr() 352 inet_pton(AF_INET, addr_str, &sin->sin_addr) != 1) { in make_sockaddr() 357 *len = sizeof(*sin); in make_sockaddr()
|
/linux-6.1.9/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()
|
/linux-6.1.9/net/l2tp/ ! |
D | l2tp_ip.c | 525 DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); in l2tp_ip_recvmsg() 548 if (sin) { in l2tp_ip_recvmsg() 549 sin->sin_family = AF_INET; in l2tp_ip_recvmsg() 550 sin->sin_addr.s_addr = ip_hdr(skb)->saddr; in l2tp_ip_recvmsg() 551 sin->sin_port = 0; in l2tp_ip_recvmsg() 552 memset(&sin->sin_zero, 0, sizeof(sin->sin_zero)); in l2tp_ip_recvmsg() 553 *addr_len = sizeof(*sin); in l2tp_ip_recvmsg()
|
/linux-6.1.9/tools/testing/selftests/net/mptcp/ ! |
D | mptcp_sockopt.sh | 5 sin="" 81 rm -f "$sin" "$sout" 183 ${local_addr} < "$sin" > "$sout" & 322 sin=$(mktemp) 328 make_file "$sin" "server" 1
|
/linux-6.1.9/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 …]
|
/linux-6.1.9/include/net/ ! |
D | vxlan.h | 194 struct sockaddr_in sin; member 442 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any() 450 return ipv4_is_multicast(ipa->sin.sin_addr.s_addr); in vxlan_addr_multicast() 457 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any() 462 return ipv4_is_multicast(ipa->sin.sin_addr.s_addr); in vxlan_addr_multicast() 557 rdst->remote_ip.sin.sin_addr.s_addr = nhc->nhc_gw.ipv4; in vxlan_fdb_nh_path_select()
|