Searched refs:usin (Results 1 – 11 of 11) sorted by relevance
/net/ipv4/ |
D | datagram.c | 23 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()
|
D | raw.c | 538 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()
|
D | udp.c | 1058 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in udp_sendmsg() 1109 if (usin) { in udp_sendmsg() 1110 if (msg->msg_namelen < sizeof(*usin)) in udp_sendmsg() 1112 if (usin->sin_family != AF_INET) { in udp_sendmsg() 1113 if (usin->sin_family != AF_UNSPEC) in udp_sendmsg() 1117 daddr = usin->sin_addr.s_addr; in udp_sendmsg() 1118 dport = usin->sin_port; in udp_sendmsg() 1163 (struct sockaddr *)usin, &ipc.addr); in udp_sendmsg() 1166 if (usin) { in udp_sendmsg() 1167 if (usin->sin_port == 0) { in udp_sendmsg() [all …]
|
D | ping.c | 730 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in ping_v4_sendmsg() 731 if (msg->msg_namelen < sizeof(*usin)) in ping_v4_sendmsg() 733 if (usin->sin_family != AF_INET) in ping_v4_sendmsg() 735 daddr = usin->sin_addr.s_addr; in ping_v4_sendmsg()
|
D | tcp_ipv4.c | 202 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()
|
/net/dccp/ |
D | ipv6.c | 818 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in dccp_v6_connect() local 835 if (usin->sin6_family != AF_INET6) in dccp_v6_connect() 841 fl6.flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect() 854 if (ipv6_addr_any(&usin->sin6_addr)) in dccp_v6_connect() 855 usin->sin6_addr.s6_addr[15] = 1; in dccp_v6_connect() 857 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect() 864 usin->sin6_scope_id) { in dccp_v6_connect() 869 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect() 872 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect() 880 sk->sk_v6_daddr = usin->sin6_addr; in dccp_v6_connect() [all …]
|
D | ipv4.c | 47 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()
|
/net/ipv6/ |
D | datagram.c | 137 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 …]
|
D | tcp_ipv6.c | 148 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 …]
|
/net/rds/ |
D | send.c | 1106 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()
|
/net/l2tp/ |
D | l2tp_ip6.c | 364 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()
|