Home
last modified time | relevance | path

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

/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.c510 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in raw_sendmsg()
512 if (msg->msg_namelen < sizeof(*usin)) in raw_sendmsg()
514 if (usin->sin_family != AF_INET) { in raw_sendmsg()
518 if (usin->sin_family) in raw_sendmsg()
521 daddr = usin->sin_addr.s_addr; in raw_sendmsg()
Dudp.c1064 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in udp_sendmsg()
1118 if (usin) { in udp_sendmsg()
1119 if (msg->msg_namelen < sizeof(*usin)) in udp_sendmsg()
1121 if (usin->sin_family != AF_INET) { in udp_sendmsg()
1122 if (usin->sin_family != AF_UNSPEC) in udp_sendmsg()
1126 daddr = usin->sin_addr.s_addr; in udp_sendmsg()
1127 dport = usin->sin_port; in udp_sendmsg()
1175 (struct sockaddr *)usin, in udp_sendmsg()
1180 if (usin) { in udp_sendmsg()
1181 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.c212 struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in tcp_v4_connect() local
227 if (usin->sin_family != AF_INET) in tcp_v4_connect()
232 nexthop = daddr = usin->sin_addr.s_addr; in tcp_v4_connect()
242 orig_dport = usin->sin_port; in tcp_v4_connect()
282 inet->inet_dport = usin->sin_port; in tcp_v4_connect()
321 usin->sin_port)); in tcp_v4_connect()
/net/dccp/
Dipv6.c823 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in dccp_v6_connect() local
840 if (usin->sin6_family != AF_INET6) in dccp_v6_connect()
846 fl6.flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect()
859 if (ipv6_addr_any(&usin->sin6_addr)) in dccp_v6_connect()
860 usin->sin6_addr.s6_addr[15] = 1; in dccp_v6_connect()
862 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect()
869 usin->sin6_scope_id) { in dccp_v6_connect()
874 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect()
877 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect()
885 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()
/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.c145 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in tcp_v6_connect() local
162 if (usin->sin6_family != AF_INET6) in tcp_v6_connect()
168 fl6.flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect()
183 if (ipv6_addr_any(&usin->sin6_addr)) { in tcp_v6_connect()
186 &usin->sin6_addr); in tcp_v6_connect()
188 usin->sin6_addr = in6addr_loopback; in tcp_v6_connect()
191 addr_type = ipv6_addr_type(&usin->sin6_addr); in tcp_v6_connect()
198 usin->sin6_scope_id) { in tcp_v6_connect()
202 if (!sk_dev_equal_l3scope(sk, usin->sin6_scope_id)) in tcp_v6_connect()
205 sk->sk_bound_dev_if = usin->sin6_scope_id; in tcp_v6_connect()
[all …]
/net/rds/
Dsend.c1105 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in rds_sendmsg()
1138 if (namelen < sizeof(*usin)) { in rds_sendmsg()
1142 switch (usin->sin_family) { in rds_sendmsg()
1144 if (usin->sin_addr.s_addr == htonl(INADDR_ANY) || in rds_sendmsg()
1145 usin->sin_addr.s_addr == htonl(INADDR_BROADCAST) || in rds_sendmsg()
1146 ipv4_is_multicast(usin->sin_addr.s_addr)) { in rds_sendmsg()
1150 ipv6_addr_set_v4mapped(usin->sin_addr.s_addr, &daddr); in rds_sendmsg()
1151 dport = usin->sin_port; in rds_sendmsg()
/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()