Home
last modified time | relevance | path

Searched refs:uaddr (Results 1 – 25 of 44) sorted by relevance

12

/net/ieee802154/
Dsocket.c107 static int ieee802154_sock_bind(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_bind() argument
113 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind()
115 return sock_no_bind(sock, uaddr, addr_len); in ieee802154_sock_bind()
118 static int ieee802154_sock_connect(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_connect() argument
123 if (addr_len < sizeof(uaddr->sa_family)) in ieee802154_sock_connect()
126 if (uaddr->sa_family == AF_UNSPEC) in ieee802154_sock_connect()
129 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect()
211 struct sockaddr_ieee802154 *uaddr = (struct sockaddr_ieee802154 *)_uaddr; in raw_bind() local
215 if (len < sizeof(*uaddr)) in raw_bind()
218 uaddr = (struct sockaddr_ieee802154 *)_uaddr; in raw_bind()
[all …]
/net/ipv4/
Ddatagram.c23 int __ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in __ip4_datagram_connect() argument
26 struct sockaddr_in *usin = (struct sockaddr_in *) uaddr; in __ip4_datagram_connect()
87 int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip4_datagram_connect() argument
92 res = __ip4_datagram_connect(sk, uaddr, addr_len); in ip4_datagram_connect()
Daf_inet.c440 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet_bind() argument
442 struct sockaddr_in *addr = (struct sockaddr_in *)uaddr; in inet_bind()
453 err = sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind()
537 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, in inet_dgram_connect() argument
542 if (addr_len < sizeof(uaddr->sa_family)) in inet_dgram_connect()
544 if (uaddr->sa_family == AF_UNSPEC) in inet_dgram_connect()
549 return sk->sk_prot->connect(sk, uaddr, addr_len); in inet_dgram_connect()
581 int __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, in __inet_stream_connect() argument
597 if (uaddr) { in __inet_stream_connect()
598 if (addr_len < sizeof(uaddr->sa_family)) in __inet_stream_connect()
[all …]
Dping.c301 struct sockaddr *uaddr, int addr_len) { in ping_check_bind_addr() argument
304 struct sockaddr_in *addr = (struct sockaddr_in *) uaddr; in ping_check_bind_addr()
332 struct sockaddr_in6 *addr = (struct sockaddr_in6 *) uaddr; in ping_check_bind_addr()
412 int ping_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ping_bind() argument
419 err = ping_check_bind_addr(sk, isk, uaddr, addr_len); in ping_bind()
430 ping_set_saddr(sk, uaddr); in ping_bind()
431 snum = ntohs(((struct sockaddr_in *)uaddr)->sin_port); in ping_bind()
/net/ipx/
Daf_ipx.c1408 struct sockaddr *uaddr, int addr_len) in __ipx_bind() argument
1413 struct sockaddr_ipx *addr = (struct sockaddr_ipx *)uaddr; in __ipx_bind()
1503 static int ipx_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in ipx_bind() argument
1509 rc = __ipx_bind(sock, uaddr, addr_len); in ipx_bind()
1515 static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, in ipx_connect() argument
1530 addr = (struct sockaddr_ipx *)uaddr; in ipx_connect()
1534 struct sockaddr_ipx uaddr; in ipx_connect() local
1536 uaddr.sipx_port = 0; in ipx_connect()
1537 uaddr.sipx_network = 0; in ipx_connect()
1543 memcpy(uaddr.sipx_node, ipxs->intrfc->if_node, in ipx_connect()
[all …]
/net/netfilter/
Dxt_ipvs.c32 const union nf_inet_addr *uaddr, in ipvs_mt_addrcmp() argument
37 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in ipvs_mt_addrcmp()
41 &uaddr->in6) == 0; in ipvs_mt_addrcmp()
Dxt_conntrack.c30 const union nf_inet_addr *uaddr, in conntrack_addrcmp() argument
34 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in conntrack_addrcmp()
37 &uaddr->in6) == 0; in conntrack_addrcmp()
/net/l2tp/
Dl2tp_ip.c251 static int l2tp_ip_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_bind() argument
254 struct sockaddr_l2tpip *addr = (struct sockaddr_l2tpip *) uaddr; in l2tp_ip_bind()
308 static int l2tp_ip_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_connect() argument
310 struct sockaddr_l2tpip *lsa = (struct sockaddr_l2tpip *) uaddr; in l2tp_ip_connect()
327 rc = __ip4_datagram_connect(sk, uaddr, addr_len); in l2tp_ip_connect()
352 static int l2tp_ip_getname(struct socket *sock, struct sockaddr *uaddr, in l2tp_ip_getname() argument
358 struct sockaddr_l2tpip *lsa = (struct sockaddr_l2tpip *)uaddr; in l2tp_ip_getname()
Dl2tp_ip6.c265 static int l2tp_ip6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip6_bind() argument
269 struct sockaddr_l2tpip6 *addr = (struct sockaddr_l2tpip6 *) uaddr; in l2tp_ip6_bind()
365 static int l2tp_ip6_connect(struct sock *sk, struct sockaddr *uaddr, in l2tp_ip6_connect() argument
368 struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *) uaddr; in l2tp_ip6_connect()
369 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in l2tp_ip6_connect()
398 rc = __ip6_datagram_connect(sk, uaddr, addr_len); in l2tp_ip6_connect()
423 static int l2tp_ip6_getname(struct socket *sock, struct sockaddr *uaddr, in l2tp_ip6_getname() argument
426 struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr; in l2tp_ip6_getname()
/net/llc/
Daf_llc.c313 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind() argument
315 struct sockaddr_llc *addr = (struct sockaddr_llc *)uaddr; in llc_ui_bind()
445 static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr, in llc_ui_connect() argument
450 struct sockaddr_llc *addr = (struct sockaddr_llc *)uaddr; in llc_ui_connect()
724 DECLARE_SOCKADDR(struct sockaddr_llc *, uaddr, msg->msg_name); in llc_ui_recvmsg()
869 if (uaddr != NULL && skb != NULL) { in llc_ui_recvmsg()
870 memcpy(uaddr, llc_ui_skb_cb(skb), sizeof(*uaddr)); in llc_ui_recvmsg()
871 msg->msg_namelen = sizeof(*uaddr); in llc_ui_recvmsg()
979 static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr, in llc_ui_getname() argument
1014 memcpy(uaddr, &sllc, sizeof(sllc)); in llc_ui_getname()
/net/ipv6/
Ddatagram.c143 int __ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, in __ip6_datagram_connect() argument
146 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in __ip6_datagram_connect()
157 err = __ip4_datagram_connect(sk, uaddr, addr_len); in __ip6_datagram_connect()
263 int ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip6_datagram_connect() argument
268 res = __ip6_datagram_connect(sk, uaddr, addr_len); in ip6_datagram_connect()
274 int ip6_datagram_connect_v6_only(struct sock *sk, struct sockaddr *uaddr, in ip6_datagram_connect_v6_only() argument
277 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, uaddr); in ip6_datagram_connect_v6_only()
280 return ip6_datagram_connect(sk, uaddr, addr_len); in ip6_datagram_connect_v6_only()
Dinet6_connection_sock.c102 void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr) in inet6_csk_addr2sockaddr() argument
104 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) uaddr; in inet6_csk_addr2sockaddr()
Daf_inet6.c284 int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet6_bind() argument
286 struct sockaddr_in6 *addr = (struct sockaddr_in6 *)uaddr; in inet6_bind()
299 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet6_bind()
477 int inet6_getname(struct socket *sock, struct sockaddr *uaddr, in inet6_getname() argument
480 struct sockaddr_in6 *sin = (struct sockaddr_in6 *)uaddr; in inet6_getname()
/net/rds/
Dbind.c142 int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in rds_bind() argument
145 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in rds_bind()
Daf_rds.c112 static int rds_getname(struct socket *sock, struct sockaddr *uaddr, in rds_getname() argument
115 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in rds_getname()
401 static int rds_connect(struct socket *sock, struct sockaddr *uaddr, in rds_connect() argument
405 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in rds_connect()
/net/rose/
Daf_rose.c656 static int rose_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in rose_bind() argument
660 struct sockaddr_rose *addr = (struct sockaddr_rose *)uaddr; in rose_bind()
701 struct full_sockaddr_rose *full_addr = (struct full_sockaddr_rose *)uaddr; in rose_bind()
717 static int rose_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) in rose_connect() argument
721 struct sockaddr_rose *addr = (struct sockaddr_rose *)uaddr; in rose_connect()
806 struct full_sockaddr_rose *full_addr = (struct full_sockaddr_rose *)uaddr; in rose_connect()
938 static int rose_getname(struct socket *sock, struct sockaddr *uaddr, in rose_getname() argument
941 struct full_sockaddr_rose *srose = (struct full_sockaddr_rose *)uaddr; in rose_getname()
/net/
Dcompat.c40 compat_uptr_t uaddr, uiov, tmp3; in get_compat_msghdr() local
45 __get_user(uaddr, &umsg->msg_name) || in get_compat_msghdr()
54 if (!uaddr) in get_compat_msghdr()
65 *save_addr = compat_ptr(uaddr); in get_compat_msghdr()
67 if (uaddr && kmsg->msg_namelen) { in get_compat_msghdr()
69 err = move_addr_to_kernel(compat_ptr(uaddr), in get_compat_msghdr()
Dsocket.c188 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument
194 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel()
217 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument
233 if (copy_to_user(uaddr, kaddr, len)) in move_addr_to_user()
1847 struct sockaddr __user *uaddr; in copy_msghdr_from_user() local
1853 __get_user(uaddr, &umsg->msg_name) || in copy_msghdr_from_user()
1862 if (!uaddr) in copy_msghdr_from_user()
1872 *save_addr = uaddr; in copy_msghdr_from_user()
1874 if (uaddr && kmsg->msg_namelen) { in copy_msghdr_from_user()
1876 err = move_addr_to_kernel(uaddr, kmsg->msg_namelen, in copy_msghdr_from_user()
[all …]
/net/sunrpc/
Daddr.c313 size_t rpc_uaddr2sockaddr(struct net *net, const char *uaddr, in rpc_uaddr2sockaddr() argument
324 memcpy(buf, uaddr, uaddr_len); in rpc_uaddr2sockaddr()
/net/can/
Draw.c387 static int raw_bind(struct socket *sock, struct sockaddr *uaddr, int len) in raw_bind() argument
389 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in raw_bind()
462 static int raw_getname(struct socket *sock, struct sockaddr *uaddr, in raw_getname() argument
465 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in raw_getname()
/net/netrom/
Daf_netrom.c562 static int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in nr_bind() argument
566 struct full_sockaddr_ax25 *addr = (struct full_sockaddr_ax25 *)uaddr; in nr_bind()
633 static int nr_connect(struct socket *sock, struct sockaddr *uaddr, in nr_connect() argument
638 struct sockaddr_ax25 *addr = (struct sockaddr_ax25 *)uaddr; in nr_connect()
830 static int nr_getname(struct socket *sock, struct sockaddr *uaddr, in nr_getname() argument
833 struct full_sockaddr_ax25 *sax = (struct full_sockaddr_ax25 *)uaddr; in nr_getname()
/net/packet/
Daf_packet.c3165 static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_bind_spkt() argument
3169 char name[sizeof(uaddr->sa_data) + 1]; in packet_bind_spkt()
3180 memcpy(name, uaddr->sa_data, sizeof(uaddr->sa_data)); in packet_bind_spkt()
3181 name[sizeof(uaddr->sa_data)] = 0; in packet_bind_spkt()
3186 static int packet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in packet_bind() argument
3188 struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr; in packet_bind()
3429 static int packet_getname_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_getname_spkt() argument
3438 uaddr->sa_family = AF_PACKET; in packet_getname_spkt()
3439 memset(uaddr->sa_data, 0, sizeof(uaddr->sa_data)); in packet_getname_spkt()
3443 strlcpy(uaddr->sa_data, dev->name, sizeof(uaddr->sa_data)); in packet_getname_spkt()
[all …]
/net/x25/
Daf_x25.c677 static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in x25_bind() argument
680 struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; in x25_bind()
737 static int x25_connect(struct socket *sock, struct sockaddr *uaddr, in x25_connect() argument
742 struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; in x25_connect()
896 static int x25_getname(struct socket *sock, struct sockaddr *uaddr, in x25_getname() argument
899 struct sockaddr_x25 *sx25 = (struct sockaddr_x25 *)uaddr; in x25_getname()
/net/appletalk/
Dddp.c1131 static int atalk_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in atalk_bind() argument
1133 struct sockaddr_at *addr = (struct sockaddr_at *)uaddr; in atalk_bind()
1186 static int atalk_connect(struct socket *sock, struct sockaddr *uaddr, in atalk_connect() argument
1200 addr = (struct sockaddr_at *)uaddr; in atalk_connect()
1241 static int atalk_getname(struct socket *sock, struct sockaddr *uaddr, in atalk_getname() argument
1274 memcpy(uaddr, &sat, sizeof(sat)); in atalk_getname()
/net/ax25/
Daf_ax25.c1038 static int ax25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in ax25_bind() argument
1041 struct full_sockaddr_ax25 *addr = (struct full_sockaddr_ax25 *)uaddr; in ax25_bind()
1117 struct sockaddr *uaddr, int addr_len, int flags) in ax25_connect() argument
1121 struct full_sockaddr_ax25 *fsa = (struct full_sockaddr_ax25 *)uaddr; in ax25_connect()
1390 static int ax25_getname(struct socket *sock, struct sockaddr *uaddr, in ax25_getname() argument
1393 struct full_sockaddr_ax25 *fsa = (struct full_sockaddr_ax25 *)uaddr; in ax25_getname()

12