Home
last modified time | relevance | path

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

12

/net/ieee802154/
Dsocket.c100 static int ieee802154_sock_bind(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_bind() argument
106 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind()
108 return sock_no_bind(sock, uaddr, addr_len); in ieee802154_sock_bind()
111 static int ieee802154_sock_connect(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_connect() argument
116 if (addr_len < sizeof(uaddr->sa_family)) in ieee802154_sock_connect()
119 if (uaddr->sa_family == AF_UNSPEC) in ieee802154_sock_connect()
122 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect()
200 struct sockaddr_ieee802154 *uaddr = (struct sockaddr_ieee802154 *)_uaddr; in raw_bind() local
204 if (len < sizeof(*uaddr)) in raw_bind()
207 uaddr = (struct sockaddr_ieee802154 *)_uaddr; in raw_bind()
[all …]
/net/rds/
Daf_rds.c114 static int rds_getname(struct socket *sock, struct sockaddr *uaddr, in rds_getname() argument
128 sin = (struct sockaddr_in *)uaddr; in rds_getname()
135 sin6 = (struct sockaddr_in6 *)uaddr; in rds_getname()
153 sin = (struct sockaddr_in *)uaddr; in rds_getname()
162 sin6 = (struct sockaddr_in6 *)uaddr; in rds_getname()
169 sin = (struct sockaddr_in *)uaddr; in rds_getname()
175 sin = (struct sockaddr_in *)uaddr; in rds_getname()
182 sin6 = (struct sockaddr_in6 *)uaddr; in rds_getname()
538 static int rds_connect(struct socket *sock, struct sockaddr *uaddr, in rds_connect() argument
551 switch (uaddr->sa_family) { in rds_connect()
[all …]
Dbind.c163 int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in rds_bind() argument
178 if (uaddr->sa_family == AF_INET) { in rds_bind()
179 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in rds_bind()
190 } else if (uaddr->sa_family == AF_INET6) { in rds_bind()
191 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)uaddr; in rds_bind()
/net/ipv4/
Ddatagram.c20 int __ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in __ip4_datagram_connect() argument
23 struct sockaddr_in *usin = (struct sockaddr_in *) uaddr; in __ip4_datagram_connect()
85 int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip4_datagram_connect() argument
90 res = __ip4_datagram_connect(sk, uaddr, addr_len); in ip4_datagram_connect()
Daf_inet.c434 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet_bind() argument
441 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind()
449 err = BPF_CGROUP_RUN_PROG_INET4_BIND(sk, uaddr); in inet_bind()
453 return __inet_bind(sk, uaddr, addr_len, false, true); in inet_bind()
457 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, in __inet_bind() argument
460 struct sockaddr_in *addr = (struct sockaddr_in *)uaddr; in __inet_bind()
556 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, in inet_dgram_connect() argument
562 if (addr_len < sizeof(uaddr->sa_family)) in inet_dgram_connect()
564 if (uaddr->sa_family == AF_UNSPEC) in inet_dgram_connect()
568 err = sk->sk_prot->pre_connect(sk, uaddr, addr_len); in inet_dgram_connect()
[all …]
Dping.c296 struct sockaddr *uaddr, int addr_len) { in ping_check_bind_addr() argument
299 struct sockaddr_in *addr = (struct sockaddr_in *) uaddr; in ping_check_bind_addr()
326 struct sockaddr_in6 *addr = (struct sockaddr_in6 *) uaddr; in ping_check_bind_addr()
405 int ping_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ping_bind() argument
412 err = ping_check_bind_addr(sk, isk, uaddr, addr_len); in ping_bind()
423 ping_set_saddr(sk, uaddr); in ping_bind()
424 snum = ntohs(((struct sockaddr_in *)uaddr)->sin_port); in ping_bind()
/net/netfilter/
Dxt_ipvs.c33 const union nf_inet_addr *uaddr, in ipvs_mt_addrcmp() argument
38 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in ipvs_mt_addrcmp()
42 &uaddr->in6) == 0; in ipvs_mt_addrcmp()
Dxt_conntrack.c27 const union nf_inet_addr *uaddr, in conntrack_addrcmp() argument
31 return ((kaddr->ip ^ uaddr->ip) & umask->ip) == 0; in conntrack_addrcmp()
34 &uaddr->in6) == 0; in conntrack_addrcmp()
/net/l2tp/
Dl2tp_ip.c245 static int l2tp_ip_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_bind() argument
248 struct sockaddr_l2tpip *addr = (struct sockaddr_l2tpip *) uaddr; in l2tp_ip_bind()
302 static int l2tp_ip_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_connect() argument
304 struct sockaddr_l2tpip *lsa = (struct sockaddr_l2tpip *) uaddr; in l2tp_ip_connect()
321 rc = __ip4_datagram_connect(sk, uaddr, addr_len); in l2tp_ip_connect()
346 static int l2tp_ip_getname(struct socket *sock, struct sockaddr *uaddr, in l2tp_ip_getname() argument
352 struct sockaddr_l2tpip *lsa = (struct sockaddr_l2tpip *)uaddr; in l2tp_ip_getname()
Dl2tp_ip6.c261 static int l2tp_ip6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip6_bind() argument
265 struct sockaddr_l2tpip6 *addr = (struct sockaddr_l2tpip6 *) uaddr; in l2tp_ip6_bind()
361 static int l2tp_ip6_connect(struct sock *sk, struct sockaddr *uaddr, in l2tp_ip6_connect() argument
364 struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *) uaddr; in l2tp_ip6_connect()
365 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in l2tp_ip6_connect()
394 rc = __ip6_datagram_connect(sk, uaddr, addr_len); in l2tp_ip6_connect()
419 static int l2tp_ip6_getname(struct socket *sock, struct sockaddr *uaddr, in l2tp_ip6_getname() argument
422 struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr; in l2tp_ip6_getname()
Dl2tp_ppp.c903 static int pppol2tp_getname(struct socket *sock, struct sockaddr *uaddr, in pppol2tp_getname() argument
944 memcpy(uaddr, &sp, len); in pppol2tp_getname()
964 memcpy(uaddr, &sp, len); in pppol2tp_getname()
983 memcpy(uaddr, &sp, len); in pppol2tp_getname()
1000 memcpy(uaddr, &sp, len); in pppol2tp_getname()
/net/llc/
Daf_llc.c319 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind() argument
321 struct sockaddr_llc *addr = (struct sockaddr_llc *)uaddr; in llc_ui_bind()
450 static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr, in llc_ui_connect() argument
455 struct sockaddr_llc *addr = (struct sockaddr_llc *)uaddr; in llc_ui_connect()
731 DECLARE_SOCKADDR(struct sockaddr_llc *, uaddr, msg->msg_name); in llc_ui_recvmsg()
874 if (uaddr != NULL && skb != NULL) { in llc_ui_recvmsg()
875 memcpy(uaddr, llc_ui_skb_cb(skb), sizeof(*uaddr)); in llc_ui_recvmsg()
876 msg->msg_namelen = sizeof(*uaddr); in llc_ui_recvmsg()
988 static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr, in llc_ui_getname() argument
1021 memcpy(uaddr, &sllc, sizeof(sllc)); in llc_ui_getname()
/net/ipv6/
Daf_inet6.c274 static int __inet6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, in __inet6_bind() argument
277 struct sockaddr_in6 *addr = (struct sockaddr_in6 *)uaddr; in __inet6_bind()
436 int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet6_bind() argument
443 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet6_bind()
451 err = BPF_CGROUP_RUN_PROG_INET6_BIND(sk, uaddr); in inet6_bind()
455 return __inet6_bind(sk, uaddr, addr_len, false, true); in inet6_bind()
507 int inet6_getname(struct socket *sock, struct sockaddr *uaddr, in inet6_getname() argument
510 struct sockaddr_in6 *sin = (struct sockaddr_in6 *)uaddr; in inet6_getname()
Ddatagram.c133 int __ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, in __ip6_datagram_connect() argument
136 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in __ip6_datagram_connect()
149 err = __ip4_datagram_connect(sk, uaddr, addr_len); in __ip6_datagram_connect()
266 int ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip6_datagram_connect() argument
271 res = __ip6_datagram_connect(sk, uaddr, addr_len); in ip6_datagram_connect()
277 int ip6_datagram_connect_v6_only(struct sock *sk, struct sockaddr *uaddr, in ip6_datagram_connect_v6_only() argument
280 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, uaddr); in ip6_datagram_connect_v6_only()
283 return ip6_datagram_connect(sk, uaddr, addr_len); in ip6_datagram_connect_v6_only()
Dinet6_connection_sock.c59 void inet6_csk_addr2sockaddr(struct sock *sk, struct sockaddr *uaddr) in inet6_csk_addr2sockaddr() argument
61 struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *) uaddr; in inet6_csk_addr2sockaddr()
/net/rose/
Daf_rose.c632 static int rose_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in rose_bind() argument
636 struct sockaddr_rose *addr = (struct sockaddr_rose *)uaddr; in rose_bind()
679 struct full_sockaddr_rose *full_addr = (struct full_sockaddr_rose *)uaddr; in rose_bind()
695 static int rose_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) in rose_connect() argument
699 struct sockaddr_rose *addr = (struct sockaddr_rose *)uaddr; in rose_connect()
784 struct full_sockaddr_rose *full_addr = (struct full_sockaddr_rose *)uaddr; in rose_connect()
917 static int rose_getname(struct socket *sock, struct sockaddr *uaddr, in rose_getname() argument
920 struct full_sockaddr_rose *srose = (struct full_sockaddr_rose *)uaddr; in rose_getname()
/net/
Dsocket.c178 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument
184 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel()
207 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument
223 if (copy_to_user(uaddr, kaddr, len)) in move_addr_to_user()
2489 struct sockaddr __user **uaddr, in recvmsg_copy_msghdr() argument
2498 err = get_compat_msghdr(msg, msg_compat, uaddr, iov); in recvmsg_copy_msghdr()
2500 err = copy_msghdr_from_user(msg, umsg, uaddr, iov); in recvmsg_copy_msghdr()
2510 struct sockaddr __user *uaddr, in ____sys_recvmsg() argument
2535 if (uaddr != NULL) { in ____sys_recvmsg()
2537 msg_sys->msg_namelen, uaddr, in ____sys_recvmsg()
[all …]
/net/can/
Draw.c390 static int raw_bind(struct socket *sock, struct sockaddr *uaddr, int len) in raw_bind() argument
392 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in raw_bind()
470 static int raw_getname(struct socket *sock, struct sockaddr *uaddr, in raw_getname() argument
473 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in raw_getname()
/net/can/j1939/
Dsocket.c422 static int j1939_sk_bind(struct socket *sock, struct sockaddr *uaddr, int len) in j1939_sk_bind() argument
424 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in j1939_sk_bind()
506 static int j1939_sk_connect(struct socket *sock, struct sockaddr *uaddr, in j1939_sk_connect() argument
509 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in j1939_sk_connect()
568 static int j1939_sk_getname(struct socket *sock, struct sockaddr *uaddr, in j1939_sk_getname() argument
571 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in j1939_sk_getname()
/net/sunrpc/
Daddr.c314 size_t rpc_uaddr2sockaddr(struct net *net, const char *uaddr, in rpc_uaddr2sockaddr() argument
325 memcpy(buf, uaddr, uaddr_len); in rpc_uaddr2sockaddr()
/net/netrom/
Daf_netrom.c537 static int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in nr_bind() argument
541 struct full_sockaddr_ax25 *addr = (struct full_sockaddr_ax25 *)uaddr; in nr_bind()
608 static int nr_connect(struct socket *sock, struct sockaddr *uaddr, in nr_connect() argument
613 struct sockaddr_ax25 *addr = (struct sockaddr_ax25 *)uaddr; in nr_connect()
806 static int nr_getname(struct socket *sock, struct sockaddr *uaddr, in nr_getname() argument
809 struct full_sockaddr_ax25 *sax = (struct full_sockaddr_ax25 *)uaddr; in nr_getname()
/net/packet/
Daf_packet.c3171 static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_bind_spkt() argument
3175 char name[sizeof(uaddr->sa_data) + 1]; in packet_bind_spkt()
3186 memcpy(name, uaddr->sa_data, sizeof(uaddr->sa_data)); in packet_bind_spkt()
3187 name[sizeof(uaddr->sa_data)] = 0; in packet_bind_spkt()
3192 static int packet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in packet_bind() argument
3194 struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr; in packet_bind()
3444 static int packet_getname_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_getname_spkt() argument
3453 uaddr->sa_family = AF_PACKET; in packet_getname_spkt()
3454 memset(uaddr->sa_data, 0, sizeof(uaddr->sa_data)); in packet_getname_spkt()
3458 strlcpy(uaddr->sa_data, dev->name, sizeof(uaddr->sa_data)); in packet_getname_spkt()
[all …]
/net/x25/
Daf_x25.c671 static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in x25_bind() argument
674 struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; in x25_bind()
738 static int x25_connect(struct socket *sock, struct sockaddr *uaddr, in x25_connect() argument
743 struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; in x25_connect()
907 static int x25_getname(struct socket *sock, struct sockaddr *uaddr, in x25_getname() argument
910 struct sockaddr_x25 *sx25 = (struct sockaddr_x25 *)uaddr; in x25_getname()
/net/ax25/
Daf_ax25.c1043 static int ax25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in ax25_bind() argument
1046 struct full_sockaddr_ax25 *addr = (struct full_sockaddr_ax25 *)uaddr; in ax25_bind()
1122 struct sockaddr *uaddr, int addr_len, int flags) in ax25_connect() argument
1126 struct full_sockaddr_ax25 *fsa = (struct full_sockaddr_ax25 *)uaddr; in ax25_connect()
1396 static int ax25_getname(struct socket *sock, struct sockaddr *uaddr, in ax25_getname() argument
1399 struct full_sockaddr_ax25 *fsa = (struct full_sockaddr_ax25 *)uaddr; in ax25_getname()
/net/appletalk/
Dddp.c1130 static int atalk_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in atalk_bind() argument
1132 struct sockaddr_at *addr = (struct sockaddr_at *)uaddr; in atalk_bind()
1185 static int atalk_connect(struct socket *sock, struct sockaddr *uaddr, in atalk_connect() argument
1199 addr = (struct sockaddr_at *)uaddr; in atalk_connect()
1240 static int atalk_getname(struct socket *sock, struct sockaddr *uaddr, in atalk_getname() argument
1271 memcpy(uaddr, &sat, sizeof(sat)); in atalk_getname()

12