Home
last modified time | relevance | path

Searched refs:usin (Results 1 – 12 of 12) sorted by relevance

/kernel/linux/linux-5.10/net/ipv4/
Ddatagram.c23 struct sockaddr_in *usin = (struct sockaddr_in *) uaddr; in __ip4_datagram_connect() local
31 if (addr_len < sizeof(*usin)) in __ip4_datagram_connect()
34 if (usin->sin_family != AF_INET) in __ip4_datagram_connect()
41 if (ipv4_is_multicast(usin->sin_addr.s_addr)) { in __ip4_datagram_connect()
48 rt = ip_route_connect(fl4, usin->sin_addr.s_addr, saddr, in __ip4_datagram_connect()
51 inet->inet_sport, usin->sin_port, sk); in __ip4_datagram_connect()
72 inet->inet_dport = usin->sin_port; in __ip4_datagram_connect()
Draw.c538 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in raw_sendmsg()
540 if (msg->msg_namelen < sizeof(*usin)) in raw_sendmsg()
542 if (usin->sin_family != AF_INET) { in raw_sendmsg()
546 if (usin->sin_family) in raw_sendmsg()
549 daddr = usin->sin_addr.s_addr; in raw_sendmsg()
Dudp.c1043 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in udp_sendmsg()
1093 if (usin) { in udp_sendmsg()
1094 if (msg->msg_namelen < sizeof(*usin)) in udp_sendmsg()
1096 if (usin->sin_family != AF_INET) { in udp_sendmsg()
1097 if (usin->sin_family != AF_UNSPEC) in udp_sendmsg()
1101 daddr = usin->sin_addr.s_addr; in udp_sendmsg()
1102 dport = usin->sin_port; in udp_sendmsg()
1147 (struct sockaddr *)usin, &ipc.addr); in udp_sendmsg()
1150 if (usin) { in udp_sendmsg()
1151 if (usin->sin_port == 0) { in udp_sendmsg()
[all …]
Dping.c728 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in ping_v4_sendmsg()
729 if (msg->msg_namelen < sizeof(*usin)) in ping_v4_sendmsg()
731 if (usin->sin_family != AF_INET) in ping_v4_sendmsg()
733 daddr = usin->sin_addr.s_addr; in ping_v4_sendmsg()
Dtcp_ipv4.c202 struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in tcp_v4_connect() local
216 if (usin->sin_family != AF_INET) in tcp_v4_connect()
219 nexthop = daddr = usin->sin_addr.s_addr; in tcp_v4_connect()
229 orig_dport = usin->sin_port; in tcp_v4_connect()
262 inet->inet_dport = usin->sin_port; in tcp_v4_connect()
301 usin->sin_port)); in tcp_v4_connect()
/kernel/linux/linux-5.10/net/ipv6/
Ddatagram.c137 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in __ip6_datagram_connect() local
147 if (usin->sin6_family == AF_INET) { in __ip6_datagram_connect()
157 if (usin->sin6_family != AF_INET6) in __ip6_datagram_connect()
161 fl6_flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in __ip6_datagram_connect()
163 if (ipv6_addr_any(&usin->sin6_addr)) { in __ip6_datagram_connect()
169 &usin->sin6_addr); in __ip6_datagram_connect()
171 usin->sin6_addr = in6addr_loopback; in __ip6_datagram_connect()
174 addr_type = ipv6_addr_type(&usin->sin6_addr); in __ip6_datagram_connect()
176 daddr = &usin->sin6_addr; in __ip6_datagram_connect()
187 sin.sin_port = usin->sin6_port; in __ip6_datagram_connect()
[all …]
Dtcp_ipv6.c148 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in tcp_v6_connect() local
164 if (usin->sin6_family != AF_INET6) in tcp_v6_connect()
170 fl6.flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect()
185 if (ipv6_addr_any(&usin->sin6_addr)) { in tcp_v6_connect()
188 &usin->sin6_addr); in tcp_v6_connect()
190 usin->sin6_addr = in6addr_loopback; in tcp_v6_connect()
193 addr_type = ipv6_addr_type(&usin->sin6_addr); in tcp_v6_connect()
200 usin->sin6_scope_id) { in tcp_v6_connect()
204 if (!sk_dev_equal_l3scope(sk, usin->sin6_scope_id)) in tcp_v6_connect()
207 sk->sk_bound_dev_if = usin->sin6_scope_id; in tcp_v6_connect()
[all …]
/kernel/linux/linux-5.10/net/dccp/
Dipv6.c808 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in dccp_v6_connect() local
825 if (usin->sin6_family != AF_INET6) in dccp_v6_connect()
831 fl6.flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect()
844 if (ipv6_addr_any(&usin->sin6_addr)) in dccp_v6_connect()
845 usin->sin6_addr.s6_addr[15] = 1; in dccp_v6_connect()
847 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect()
854 usin->sin6_scope_id) { in dccp_v6_connect()
859 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect()
862 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect()
870 sk->sk_v6_daddr = usin->sin6_addr; in dccp_v6_connect()
[all …]
Dipv4.c40 const struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in dccp_v4_connect() local
55 if (usin->sin_family != AF_INET) in dccp_v4_connect()
58 nexthop = daddr = usin->sin_addr.s_addr; in dccp_v4_connect()
69 orig_dport = usin->sin_port; in dccp_v4_connect()
89 inet->inet_dport = usin->sin_port; in dccp_v4_connect()
/kernel/linux/linux-5.10/net/rds/
Dsend.c1106 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in rds_sendmsg()
1139 if (namelen < sizeof(*usin)) { in rds_sendmsg()
1143 switch (usin->sin_family) { in rds_sendmsg()
1145 if (usin->sin_addr.s_addr == htonl(INADDR_ANY) || in rds_sendmsg()
1146 usin->sin_addr.s_addr == htonl(INADDR_BROADCAST) || in rds_sendmsg()
1147 ipv4_is_multicast(usin->sin_addr.s_addr)) { in rds_sendmsg()
1151 ipv6_addr_set_v4mapped(usin->sin_addr.s_addr, &daddr); in rds_sendmsg()
1152 dport = usin->sin_port; in rds_sendmsg()
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dtcp_nip.c637 struct sockaddr_nin *usin = (struct sockaddr_nin *)uaddr; in tcp_nip_connect() local
648 fln.daddr = usin->sin_addr; in tcp_nip_connect()
653 if (usin->sin_family != AF_NINET) in tcp_nip_connect()
659 daddr = &usin->sin_addr; in tcp_nip_connect()
660 orig_dport = usin->sin_port; in tcp_nip_connect()
690 inet->inet_dport = usin->sin_port; in tcp_nip_connect()
691 sk->SK_NIP_DADDR = usin->sin_addr; in tcp_nip_connect()
721 usin->sin_port); in tcp_nip_connect()
736 nip_sock_debug_output(&usin->sin_addr, &sk->SK_NIP_RCV_SADDR, in tcp_nip_connect()
737 usin->sin_port, inet->inet_sport, __func__); in tcp_nip_connect()
/kernel/linux/linux-5.10/net/l2tp/
Dl2tp_ip6.c364 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in l2tp_ip6_connect() local
372 if (usin->sin6_family != AF_INET6) in l2tp_ip6_connect()
375 addr_type = ipv6_addr_type(&usin->sin6_addr); in l2tp_ip6_connect()
380 daddr = &usin->sin6_addr; in l2tp_ip6_connect()