Searched refs:usin (Results 1 – 11 of 11) sorted by relevance
/net/ipv4/ |
D | datagram.c | 26 struct sockaddr_in *usin = (struct sockaddr_in *) uaddr; in __ip4_datagram_connect() local 34 if (addr_len < sizeof(*usin)) in __ip4_datagram_connect() 37 if (usin->sin_family != AF_INET) in __ip4_datagram_connect() 44 if (ipv4_is_multicast(usin->sin_addr.s_addr)) { in __ip4_datagram_connect() 51 rt = ip_route_connect(fl4, usin->sin_addr.s_addr, saddr, in __ip4_datagram_connect() 54 inet->inet_sport, usin->sin_port, sk); in __ip4_datagram_connect() 75 inet->inet_dport = usin->sin_port; in __ip4_datagram_connect()
|
D | raw.c | 509 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()
|
D | ping.c | 731 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in ping_v4_sendmsg() 732 if (msg->msg_namelen < sizeof(*usin)) in ping_v4_sendmsg() 734 if (usin->sin_family != AF_INET) in ping_v4_sendmsg() 736 daddr = usin->sin_addr.s_addr; in ping_v4_sendmsg()
|
D | udp.c | 924 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in udp_sendmsg() 925 if (msg->msg_namelen < sizeof(*usin)) in udp_sendmsg() 927 if (usin->sin_family != AF_INET) { in udp_sendmsg() 928 if (usin->sin_family != AF_UNSPEC) in udp_sendmsg() 932 daddr = usin->sin_addr.s_addr; in udp_sendmsg() 933 dport = usin->sin_port; in udp_sendmsg()
|
D | tcp_ipv4.c | 143 struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in tcp_v4_connect() local 156 if (usin->sin_family != AF_INET) in tcp_v4_connect() 159 nexthop = daddr = usin->sin_addr.s_addr; in tcp_v4_connect() 169 orig_dport = usin->sin_port; in tcp_v4_connect() 206 inet->inet_dport = usin->sin_port; in tcp_v4_connect() 242 usin->sin_port); in tcp_v4_connect()
|
/net/ipv6/ |
D | datagram.c | 45 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in __ip6_datagram_connect() local 56 if (usin->sin6_family == AF_INET) { in __ip6_datagram_connect() 66 if (usin->sin6_family != AF_INET6) in __ip6_datagram_connect() 71 fl6.flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in __ip6_datagram_connect() 79 if (ipv6_addr_any(&usin->sin6_addr)) { in __ip6_datagram_connect() 85 &usin->sin6_addr); in __ip6_datagram_connect() 87 usin->sin6_addr = in6addr_loopback; in __ip6_datagram_connect() 90 addr_type = ipv6_addr_type(&usin->sin6_addr); in __ip6_datagram_connect() 92 daddr = &usin->sin6_addr; in __ip6_datagram_connect() 103 sin.sin_port = usin->sin6_port; in __ip6_datagram_connect() [all …]
|
D | tcp_ipv6.c | 130 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in tcp_v6_connect() local 146 if (usin->sin6_family != AF_INET6) in tcp_v6_connect() 152 fl6.flowlabel = usin->sin6_flowinfo&IPV6_FLOWINFO_MASK; in tcp_v6_connect() 167 if (ipv6_addr_any(&usin->sin6_addr)) { in tcp_v6_connect() 170 &usin->sin6_addr); in tcp_v6_connect() 172 usin->sin6_addr = in6addr_loopback; in tcp_v6_connect() 175 addr_type = ipv6_addr_type(&usin->sin6_addr); in tcp_v6_connect() 182 usin->sin6_scope_id) { in tcp_v6_connect() 187 sk->sk_bound_dev_if != usin->sin6_scope_id) in tcp_v6_connect() 190 sk->sk_bound_dev_if = usin->sin6_scope_id; in tcp_v6_connect() [all …]
|
/net/dccp/ |
D | ipv6.c | 846 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in dccp_v6_connect() local 863 if (usin->sin6_family != AF_INET6) in dccp_v6_connect() 869 fl6.flowlabel = usin->sin6_flowinfo & IPV6_FLOWINFO_MASK; in dccp_v6_connect() 882 if (ipv6_addr_any(&usin->sin6_addr)) in dccp_v6_connect() 883 usin->sin6_addr.s6_addr[15] = 1; in dccp_v6_connect() 885 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect() 892 usin->sin6_scope_id) { in dccp_v6_connect() 897 sk->sk_bound_dev_if != usin->sin6_scope_id) in dccp_v6_connect() 900 sk->sk_bound_dev_if = usin->sin6_scope_id; in dccp_v6_connect() 908 sk->sk_v6_daddr = usin->sin6_addr; in dccp_v6_connect() [all …]
|
D | ipv4.c | 44 const struct sockaddr_in *usin = (struct sockaddr_in *)uaddr; in dccp_v4_connect() local 59 if (usin->sin_family != AF_INET) in dccp_v4_connect() 62 nexthop = daddr = usin->sin_addr.s_addr; in dccp_v4_connect() 73 orig_dport = usin->sin_port; in dccp_v4_connect() 94 inet->inet_dport = usin->sin_port; in dccp_v4_connect()
|
/net/l2tp/ |
D | l2tp_ip6.c | 366 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in l2tp_ip6_connect() local 377 if (usin->sin6_family != AF_INET6) in l2tp_ip6_connect() 380 addr_type = ipv6_addr_type(&usin->sin6_addr); in l2tp_ip6_connect() 385 daddr = &usin->sin6_addr; in l2tp_ip6_connect()
|
/net/rds/ |
D | send.c | 935 DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); in rds_sendmsg() 954 if (msg->msg_namelen < sizeof(*usin) || usin->sin_family != AF_INET) { in rds_sendmsg() 958 daddr = usin->sin_addr.s_addr; in rds_sendmsg() 959 dport = usin->sin_port; in rds_sendmsg()
|