Home
last modified time | relevance | path

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

/linux/net/ipv4/
A 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()
47 rt = ip_route_connect(fl4, usin->sin_addr.s_addr, saddr, in __ip4_datagram_connect()
50 inet->inet_sport, usin->sin_port, sk); in __ip4_datagram_connect()
71 inet->inet_dport = usin->sin_port; in __ip4_datagram_connect()
A 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()
A Dudp.c1094 if (usin) { in udp_sendmsg()
1095 if (msg->msg_namelen < sizeof(*usin)) in udp_sendmsg()
1097 if (usin->sin_family != AF_INET) { in udp_sendmsg()
1098 if (usin->sin_family != AF_UNSPEC) in udp_sendmsg()
1102 daddr = usin->sin_addr.s_addr; in udp_sendmsg()
1103 dport = usin->sin_port; in udp_sendmsg()
1148 (struct sockaddr *)usin, &ipc.addr); in udp_sendmsg()
1151 if (usin) { in udp_sendmsg()
1152 if (usin->sin_port == 0) { in udp_sendmsg()
1157 daddr = usin->sin_addr.s_addr; in udp_sendmsg()
[all …]
A Dping.c712 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in ping_v4_sendmsg()
713 if (msg->msg_namelen < sizeof(*usin)) in ping_v4_sendmsg()
715 if (usin->sin_family != AF_INET) in ping_v4_sendmsg()
717 daddr = usin->sin_addr.s_addr; in ping_v4_sendmsg()
A Dtcp_ipv4.c200 struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in tcp_v4_connect() local
214 if (usin->sin_family != AF_INET) in tcp_v4_connect()
217 nexthop = daddr = usin->sin_addr.s_addr; in tcp_v4_connect()
227 orig_dport = usin->sin_port; in tcp_v4_connect()
260 inet->inet_dport = usin->sin_port; in tcp_v4_connect()
299 usin->sin_port)); in tcp_v4_connect()
/linux/net/ipv6/
A Ddatagram.c147 if (usin->sin6_family == AF_INET) { in __ip6_datagram_connect()
157 if (usin->sin6_family != AF_INET6) 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()
216 usin->sin6_scope_id) { in __ip6_datagram_connect()
221 sk->sk_bound_dev_if = usin->sin6_scope_id; in __ip6_datagram_connect()
[all …]
A Dtcp_ipv6.c164 if (usin->sin6_family != AF_INET6) 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()
207 sk->sk_bound_dev_if = usin->sin6_scope_id; in tcp_v6_connect()
222 sk->sk_v6_daddr = usin->sin6_addr; in tcp_v6_connect()
237 sin.sin_port = usin->sin6_port; in tcp_v6_connect()
274 fl6.fl6_dport = usin->sin6_port; in tcp_v6_connect()
[all …]
/linux/net/dccp/
A Dipv6.c838 if (usin->sin6_family != AF_INET6) in dccp_v6_connect()
857 if (ipv6_addr_any(&usin->sin6_addr)) in dccp_v6_connect()
858 usin->sin6_addr.s6_addr[15] = 1; in dccp_v6_connect()
860 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect()
867 usin->sin6_scope_id) { in dccp_v6_connect()
872 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect()
875 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect()
883 sk->sk_v6_daddr = usin->sin6_addr; in dccp_v6_connect()
899 sin.sin_port = usin->sin6_port; in dccp_v6_connect()
923 fl6.fl6_dport = usin->sin6_port; in dccp_v6_connect()
[all …]
A 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()
96 inet->inet_dport = usin->sin_port; in dccp_v4_connect()
/linux/net/rds/
A 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/net/l2tp/
A Dl2tp_ip6.c366 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in l2tp_ip6_connect() local
374 if (usin->sin6_family != AF_INET6) in l2tp_ip6_connect()
377 addr_type = ipv6_addr_type(&usin->sin6_addr); in l2tp_ip6_connect()
382 daddr = &usin->sin6_addr; in l2tp_ip6_connect()

Completed in 31 milliseconds