Home
last modified time | relevance | path

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

/Linux-v6.6/net/ipv4/
Ddatagram.c22 struct sockaddr_in *usin = (struct sockaddr_in *) uaddr; in __ip4_datagram_connect() local
30 if (addr_len < sizeof(*usin)) in __ip4_datagram_connect()
33 if (usin->sin_family != AF_INET) in __ip4_datagram_connect()
40 if (ipv4_is_multicast(usin->sin_addr.s_addr)) { in __ip4_datagram_connect()
49 rt = ip_route_connect(fl4, usin->sin_addr.s_addr, saddr, oif, in __ip4_datagram_connect()
51 usin->sin_port, sk); in __ip4_datagram_connect()
72 inet->inet_dport = usin->sin_port; in __ip4_datagram_connect()
Draw.c509 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in raw_sendmsg()
511 if (msg->msg_namelen < sizeof(*usin)) in raw_sendmsg()
513 if (usin->sin_family != AF_INET) { in raw_sendmsg()
517 if (usin->sin_family) in raw_sendmsg()
520 daddr = usin->sin_addr.s_addr; in raw_sendmsg()
Dudp.c1042 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in udp_sendmsg()
1092 if (usin) { in udp_sendmsg()
1093 if (msg->msg_namelen < sizeof(*usin)) in udp_sendmsg()
1095 if (usin->sin_family != AF_INET) { in udp_sendmsg()
1096 if (usin->sin_family != AF_UNSPEC) in udp_sendmsg()
1100 daddr = usin->sin_addr.s_addr; in udp_sendmsg()
1101 dport = usin->sin_port; in udp_sendmsg()
1146 (struct sockaddr *)usin, &ipc.addr); in udp_sendmsg()
1149 if (usin) { in udp_sendmsg()
1150 if (usin->sin_port == 0) { in udp_sendmsg()
[all …]
Dping.c723 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in ping_v4_sendmsg()
724 if (msg->msg_namelen < sizeof(*usin)) in ping_v4_sendmsg()
726 if (usin->sin_family != AF_INET) in ping_v4_sendmsg()
728 daddr = usin->sin_addr.s_addr; in ping_v4_sendmsg()
Dtcp_ipv4.c203 struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in tcp_v4_connect() local
218 if (usin->sin_family != AF_INET) in tcp_v4_connect()
221 nexthop = daddr = usin->sin_addr.s_addr; in tcp_v4_connect()
231 orig_dport = usin->sin_port; in tcp_v4_connect()
271 inet->inet_dport = usin->sin_port; in tcp_v4_connect()
310 usin->sin_port)); in tcp_v4_connect()
/Linux-v6.6/net/ipv6/
Ddatagram.c143 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in __ip6_datagram_connect() local
153 if (usin->sin6_family == AF_INET) { in __ip6_datagram_connect()
163 if (usin->sin6_family != AF_INET6) in __ip6_datagram_connect()
167 fl6_flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in __ip6_datagram_connect()
169 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()
193 sin.sin_port = usin->sin6_port; in __ip6_datagram_connect()
[all …]
Dtcp_ipv6.c144 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in tcp_v6_connect() local
161 if (usin->sin6_family != AF_INET6) in tcp_v6_connect()
167 fl6.flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect()
182 if (ipv6_addr_any(&usin->sin6_addr)) { in tcp_v6_connect()
185 &usin->sin6_addr); in tcp_v6_connect()
187 usin->sin6_addr = in6addr_loopback; in tcp_v6_connect()
190 addr_type = ipv6_addr_type(&usin->sin6_addr); in tcp_v6_connect()
197 usin->sin6_scope_id) { in tcp_v6_connect()
201 if (!sk_dev_equal_l3scope(sk, usin->sin6_scope_id)) in tcp_v6_connect()
204 sk->sk_bound_dev_if = usin->sin6_scope_id; in tcp_v6_connect()
[all …]
/Linux-v6.6/net/dccp/
Dipv6.c820 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in dccp_v6_connect() local
837 if (usin->sin6_family != AF_INET6) in dccp_v6_connect()
843 fl6.flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect()
856 if (ipv6_addr_any(&usin->sin6_addr)) in dccp_v6_connect()
857 usin->sin6_addr.s6_addr[15] = 1; in dccp_v6_connect()
859 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect()
866 usin->sin6_scope_id) { in dccp_v6_connect()
871 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect()
874 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect()
882 sk->sk_v6_daddr = usin->sin6_addr; in dccp_v6_connect()
[all …]
Dipv4.c47 const struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in dccp_v4_connect() local
62 if (usin->sin_family != AF_INET) in dccp_v4_connect()
65 nexthop = daddr = usin->sin_addr.s_addr; in dccp_v4_connect()
76 orig_dport = usin->sin_port; in dccp_v4_connect()
102 inet->inet_dport = usin->sin_port; in dccp_v4_connect()
/Linux-v6.6/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()
/Linux-v6.6/net/l2tp/
Dl2tp_ip6.c363 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in l2tp_ip6_connect() local
371 if (usin->sin6_family != AF_INET6) in l2tp_ip6_connect()
374 addr_type = ipv6_addr_type(&usin->sin6_addr); in l2tp_ip6_connect()
379 daddr = &usin->sin6_addr; in l2tp_ip6_connect()