Searched refs:usin (Results 1 – 8 of 8) sorted by relevance
/net/ipv4/ |
D | datagram.c | 26 struct sockaddr_in *usin = (struct sockaddr_in *) uaddr; in ip4_datagram_connect() local 33 if (addr_len < sizeof(*usin)) in ip4_datagram_connect() 36 if (usin->sin_family != AF_INET) in ip4_datagram_connect() 43 if (ipv4_is_multicast(usin->sin_addr.s_addr)) { in ip4_datagram_connect() 49 err = ip_route_connect(&rt, usin->sin_addr.s_addr, saddr, in ip4_datagram_connect() 52 inet->sport, usin->sin_port, sk, 1); in ip4_datagram_connect() 68 inet->dport = usin->sin_port; in ip4_datagram_connect()
|
D | raw.c | 468 struct sockaddr_in *usin = (struct sockaddr_in *)msg->msg_name; in raw_sendmsg() local 470 if (msg->msg_namelen < sizeof(*usin)) in raw_sendmsg() 472 if (usin->sin_family != AF_INET) { in raw_sendmsg() 479 if (usin->sin_family) in raw_sendmsg() 482 daddr = usin->sin_addr.s_addr; in raw_sendmsg()
|
D | udp.c | 621 struct sockaddr_in * usin = (struct sockaddr_in*)msg->msg_name; in udp_sendmsg() local 622 if (msg->msg_namelen < sizeof(*usin)) in udp_sendmsg() 624 if (usin->sin_family != AF_INET) { in udp_sendmsg() 625 if (usin->sin_family != AF_UNSPEC) in udp_sendmsg() 629 daddr = usin->sin_addr.s_addr; in udp_sendmsg() 630 dport = usin->sin_port; in udp_sendmsg()
|
D | tcp_ipv4.c | 149 struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in tcp_v4_connect() local 158 if (usin->sin_family != AF_INET) in tcp_v4_connect() 161 nexthop = daddr = usin->sin_addr.s_addr; in tcp_v4_connect() 171 inet->sport, usin->sin_port, sk, 1); in tcp_v4_connect() 213 inet->dport = usin->sin_port; in tcp_v4_connect() 245 usin->sin_port); in tcp_v4_connect()
|
/net/ipv6/ |
D | datagram.c | 37 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in ip6_datagram_connect() local 47 if (usin->sin6_family == AF_INET) { in ip6_datagram_connect() 57 if (usin->sin6_family != AF_INET6) in ip6_datagram_connect() 62 fl.fl6_flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in ip6_datagram_connect() 67 ipv6_addr_copy(&usin->sin6_addr, &flowlabel->dst); in ip6_datagram_connect() 71 addr_type = ipv6_addr_type(&usin->sin6_addr); in ip6_datagram_connect() 77 usin->sin6_addr.s6_addr[15] = 0x01; in ip6_datagram_connect() 80 daddr = &usin->sin6_addr; in ip6_datagram_connect() 91 sin.sin_port = usin->sin6_port; in ip6_datagram_connect() 117 usin->sin6_scope_id) { in ip6_datagram_connect() [all …]
|
D | tcp_ipv6.c | 123 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in tcp_v6_connect() local 137 if (usin->sin6_family != AF_INET6) in tcp_v6_connect() 143 fl.fl6_flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect() 150 ipv6_addr_copy(&usin->sin6_addr, &flowlabel->dst); in tcp_v6_connect() 159 if(ipv6_addr_any(&usin->sin6_addr)) in tcp_v6_connect() 160 usin->sin6_addr.s6_addr[15] = 0x1; in tcp_v6_connect() 162 addr_type = ipv6_addr_type(&usin->sin6_addr); in tcp_v6_connect() 169 usin->sin6_scope_id) { in tcp_v6_connect() 174 sk->sk_bound_dev_if != usin->sin6_scope_id) in tcp_v6_connect() 177 sk->sk_bound_dev_if = usin->sin6_scope_id; in tcp_v6_connect() [all …]
|
/net/dccp/ |
D | ipv6.c | 881 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in dccp_v6_connect() local 897 if (usin->sin6_family != AF_INET6) in dccp_v6_connect() 903 fl.fl6_flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect() 910 ipv6_addr_copy(&usin->sin6_addr, &flowlabel->dst); in dccp_v6_connect() 917 if (ipv6_addr_any(&usin->sin6_addr)) in dccp_v6_connect() 918 usin->sin6_addr.s6_addr[15] = 1; in dccp_v6_connect() 920 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect() 927 usin->sin6_scope_id) { in dccp_v6_connect() 932 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect() 935 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect() [all …]
|
D | ipv4.c | 44 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() 68 inet->sport, usin->sin_port, sk, 1); in dccp_v4_connect() 84 inet->dport = usin->sin_port; in dccp_v4_connect()
|