/net/ieee802154/ |
D | socket.c | 99 static int ieee802154_sock_bind(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_bind() argument 105 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind() 107 return sock_no_bind(sock, uaddr, addr_len); in ieee802154_sock_bind() 110 static int ieee802154_sock_connect(struct socket *sock, struct sockaddr *uaddr, in ieee802154_sock_connect() argument 115 if (addr_len < sizeof(uaddr->sa_family)) in ieee802154_sock_connect() 118 if (uaddr->sa_family == AF_UNSPEC) in ieee802154_sock_connect() 121 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect() 199 struct sockaddr_ieee802154 *uaddr = (struct sockaddr_ieee802154 *)_uaddr; in raw_bind() local 203 err = ieee802154_sockaddr_check_size(uaddr, len); in raw_bind() 207 uaddr = (struct sockaddr_ieee802154 *)_uaddr; in raw_bind() [all …]
|
/net/rds/ |
D | af_rds.c | 114 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() 536 static int rds_connect(struct socket *sock, struct sockaddr *uaddr, in rds_connect() argument 549 switch (uaddr->sa_family) { in rds_connect() [all …]
|
D | bind.c | 163 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/ |
D | datagram.c | 20 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()
|
D | af_inet.c | 441 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet_bind() argument 449 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind() 457 err = BPF_CGROUP_RUN_PROG_INET_BIND_LOCK(sk, uaddr, in inet_bind() 462 return __inet_bind(sk, uaddr, addr_len, flags); in inet_bind() 466 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, in __inet_bind() argument 469 struct sockaddr_in *addr = (struct sockaddr_in *)uaddr; in __inet_bind() 568 int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, in inet_dgram_connect() argument 574 if (addr_len < sizeof(uaddr->sa_family)) in inet_dgram_connect() 576 if (uaddr->sa_family == AF_UNSPEC) in inet_dgram_connect() 580 err = sk->sk_prot->pre_connect(sk, uaddr, addr_len); in inet_dgram_connect() [all …]
|
D | ping.c | 303 struct sockaddr *uaddr, int addr_len) in ping_check_bind_addr() argument 307 struct sockaddr_in *addr = (struct sockaddr_in *) uaddr; in ping_check_bind_addr() 337 struct sockaddr_in6 *addr = (struct sockaddr_in6 *) uaddr; in ping_check_bind_addr() 410 int ping_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ping_bind() argument 417 err = ping_check_bind_addr(sk, isk, uaddr, addr_len); in ping_bind() 428 snum = ntohs(((struct sockaddr_in *)uaddr)->sin_port); in ping_bind() 434 ping_set_saddr(sk, uaddr); in ping_bind()
|
/net/l2tp/ |
D | l2tp_ip.c | 246 static int l2tp_ip_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_bind() argument 249 struct sockaddr_l2tpip *addr = (struct sockaddr_l2tpip *)uaddr; in l2tp_ip_bind() 305 static int l2tp_ip_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_connect() argument 307 struct sockaddr_l2tpip *lsa = (struct sockaddr_l2tpip *)uaddr; in l2tp_ip_connect() 324 rc = __ip4_datagram_connect(sk, uaddr, addr_len); in l2tp_ip_connect() 349 static int l2tp_ip_getname(struct socket *sock, struct sockaddr *uaddr, in l2tp_ip_getname() argument 355 struct sockaddr_l2tpip *lsa = (struct sockaddr_l2tpip *)uaddr; in l2tp_ip_getname()
|
D | l2tp_ip6.c | 260 static int l2tp_ip6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip6_bind() argument 264 struct sockaddr_l2tpip6 *addr = (struct sockaddr_l2tpip6 *)uaddr; in l2tp_ip6_bind() 360 static int l2tp_ip6_connect(struct sock *sk, struct sockaddr *uaddr, in l2tp_ip6_connect() argument 363 struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr; in l2tp_ip6_connect() 364 struct sockaddr_in6 *usin = (struct sockaddr_in6 *)uaddr; in l2tp_ip6_connect() 393 rc = __ip6_datagram_connect(sk, uaddr, addr_len); in l2tp_ip6_connect() 418 static int l2tp_ip6_getname(struct socket *sock, struct sockaddr *uaddr, in l2tp_ip6_getname() argument 421 struct sockaddr_l2tpip6 *lsa = (struct sockaddr_l2tpip6 *)uaddr; in l2tp_ip6_getname()
|
D | l2tp_ppp.c | 903 static int pppol2tp_getname(struct socket *sock, struct sockaddr *uaddr, in pppol2tp_getname() argument 945 memcpy(uaddr, &sp, len); in pppol2tp_getname() 964 memcpy(uaddr, &sp, len); in pppol2tp_getname() 982 memcpy(uaddr, &sp, len); in pppol2tp_getname() 1000 memcpy(uaddr, &sp, len); in pppol2tp_getname()
|
/net/netfilter/ |
D | xt_ipvs.c | 33 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()
|
D | xt_conntrack.c | 27 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/llc/ |
D | af_llc.c | 339 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind() argument 341 struct sockaddr_llc *addr = (struct sockaddr_llc *)uaddr; in llc_ui_bind() 478 static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr, in llc_ui_connect() argument 483 struct sockaddr_llc *addr = (struct sockaddr_llc *)uaddr; in llc_ui_connect() 761 DECLARE_SOCKADDR(struct sockaddr_llc *, uaddr, msg->msg_name); in llc_ui_recvmsg() 904 if (uaddr != NULL && skb != NULL) { in llc_ui_recvmsg() 905 memcpy(uaddr, llc_ui_skb_cb(skb), sizeof(*uaddr)); in llc_ui_recvmsg() 906 msg->msg_namelen = sizeof(*uaddr); in llc_ui_recvmsg() 1025 static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr, in llc_ui_getname() argument 1058 memcpy(uaddr, &sllc, sizeof(sllc)); in llc_ui_getname()
|
/net/ipv6/ |
D | datagram.c | 134 int __ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, in __ip6_datagram_connect() argument 137 struct sockaddr_in6 *usin = (struct sockaddr_in6 *) uaddr; in __ip6_datagram_connect() 150 err = __ip4_datagram_connect(sk, uaddr, addr_len); in __ip6_datagram_connect() 267 int ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip6_datagram_connect() argument 272 res = __ip6_datagram_connect(sk, uaddr, addr_len); in ip6_datagram_connect() 278 int ip6_datagram_connect_v6_only(struct sock *sk, struct sockaddr *uaddr, in ip6_datagram_connect_v6_only() argument 281 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, uaddr); in ip6_datagram_connect_v6_only() 284 return ip6_datagram_connect(sk, uaddr, addr_len); in ip6_datagram_connect_v6_only()
|
D | af_inet6.c | 288 static int __inet6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, in __inet6_bind() argument 291 struct sockaddr_in6 *addr = (struct sockaddr_in6 *)uaddr; in __inet6_bind() 453 int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet6_bind() argument 461 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet6_bind() 469 err = BPF_CGROUP_RUN_PROG_INET_BIND_LOCK(sk, uaddr, in inet6_bind() 474 return __inet6_bind(sk, uaddr, addr_len, flags); in inet6_bind() 531 int inet6_getname(struct socket *sock, struct sockaddr *uaddr, in inet6_getname() argument 534 struct sockaddr_in6 *sin = (struct sockaddr_in6 *)uaddr; in inet6_getname()
|
D | inet6_connection_sock.c | 59 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/ |
D | af_rose.c | 695 static int rose_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in rose_bind() argument 699 struct sockaddr_rose *addr = (struct sockaddr_rose *)uaddr; in rose_bind() 742 struct full_sockaddr_rose *full_addr = (struct full_sockaddr_rose *)uaddr; in rose_bind() 758 static int rose_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) in rose_connect() argument 762 struct sockaddr_rose *addr = (struct sockaddr_rose *)uaddr; in rose_connect() 850 struct full_sockaddr_rose *full_addr = (struct full_sockaddr_rose *)uaddr; in rose_connect() 983 static int rose_getname(struct socket *sock, struct sockaddr *uaddr, in rose_getname() argument 986 struct full_sockaddr_rose *srose = (struct full_sockaddr_rose *)uaddr; in rose_getname()
|
/net/ |
D | socket.c | 242 int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr) in move_addr_to_kernel() argument 248 if (copy_from_user(kaddr, uaddr, ulen)) in move_addr_to_kernel() 271 void __user *uaddr, int __user *ulen) in move_addr_to_user() argument 287 if (copy_to_user(uaddr, kaddr, len)) in move_addr_to_user() 2605 struct sockaddr __user **uaddr, in recvmsg_copy_msghdr() argument 2614 err = get_compat_msghdr(msg, msg_compat, uaddr, iov); in recvmsg_copy_msghdr() 2616 err = copy_msghdr_from_user(msg, umsg, uaddr, iov); in recvmsg_copy_msghdr() 2626 struct sockaddr __user *uaddr, in ____sys_recvmsg() argument 2656 if (uaddr != NULL) { in ____sys_recvmsg() 2658 msg_sys->msg_namelen, uaddr, in ____sys_recvmsg() [all …]
|
/net/sunrpc/ |
D | addr.c | 310 size_t rpc_uaddr2sockaddr(struct net *net, const char *uaddr, in rpc_uaddr2sockaddr() argument 321 memcpy(buf, uaddr, uaddr_len); in rpc_uaddr2sockaddr()
|
/net/can/j1939/ |
D | socket.c | 442 static int j1939_sk_bind(struct socket *sock, struct sockaddr *uaddr, int len) in j1939_sk_bind() argument 444 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in j1939_sk_bind() 534 static int j1939_sk_connect(struct socket *sock, struct sockaddr *uaddr, in j1939_sk_connect() argument 537 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in j1939_sk_connect() 601 static int j1939_sk_getname(struct socket *sock, struct sockaddr *uaddr, in j1939_sk_getname() argument 604 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in j1939_sk_getname()
|
/net/netrom/ |
D | af_netrom.c | 564 static int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in nr_bind() argument 568 struct full_sockaddr_ax25 *addr = (struct full_sockaddr_ax25 *)uaddr; in nr_bind() 635 static int nr_connect(struct socket *sock, struct sockaddr *uaddr, in nr_connect() argument 640 struct sockaddr_ax25 *addr = (struct sockaddr_ax25 *)uaddr; in nr_connect() 838 static int nr_getname(struct socket *sock, struct sockaddr *uaddr, in nr_getname() argument 841 struct full_sockaddr_ax25 *sax = (struct full_sockaddr_ax25 *)uaddr; in nr_getname()
|
/net/can/ |
D | raw.c | 421 static int raw_bind(struct socket *sock, struct sockaddr *uaddr, int len) in raw_bind() argument 423 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in raw_bind() 507 static int raw_getname(struct socket *sock, struct sockaddr *uaddr, in raw_getname() argument 510 struct sockaddr_can *addr = (struct sockaddr_can *)uaddr; in raw_getname()
|
/net/packet/ |
D | af_packet.c | 3251 static int packet_bind_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_bind_spkt() argument 3255 char name[sizeof(uaddr->sa_data) + 1]; in packet_bind_spkt() 3266 memcpy(name, uaddr->sa_data, sizeof(uaddr->sa_data)); in packet_bind_spkt() 3267 name[sizeof(uaddr->sa_data)] = 0; in packet_bind_spkt() 3272 static int packet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in packet_bind() argument 3274 struct sockaddr_ll *sll = (struct sockaddr_ll *)uaddr; in packet_bind() 3529 static int packet_getname_spkt(struct socket *sock, struct sockaddr *uaddr, in packet_getname_spkt() argument 3538 uaddr->sa_family = AF_PACKET; in packet_getname_spkt() 3539 memset(uaddr->sa_data, 0, sizeof(uaddr->sa_data)); in packet_getname_spkt() 3543 strlcpy(uaddr->sa_data, dev->name, sizeof(uaddr->sa_data)); in packet_getname_spkt() [all …]
|
/net/x25/ |
D | af_x25.c | 673 static int x25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in x25_bind() argument 676 struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; in x25_bind() 741 static int x25_connect(struct socket *sock, struct sockaddr *uaddr, in x25_connect() argument 746 struct sockaddr_x25 *addr = (struct sockaddr_x25 *)uaddr; in x25_connect() 911 static int x25_getname(struct socket *sock, struct sockaddr *uaddr, in x25_getname() argument 914 struct sockaddr_x25 *sx25 = (struct sockaddr_x25 *)uaddr; in x25_getname()
|
/net/appletalk/ |
D | ddp.c | 1138 static int atalk_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in atalk_bind() argument 1140 struct sockaddr_at *addr = (struct sockaddr_at *)uaddr; in atalk_bind() 1193 static int atalk_connect(struct socket *sock, struct sockaddr *uaddr, in atalk_connect() argument 1207 addr = (struct sockaddr_at *)uaddr; in atalk_connect() 1248 static int atalk_getname(struct socket *sock, struct sockaddr *uaddr, in atalk_getname() argument 1279 memcpy(uaddr, &sat, sizeof(sat)); in atalk_getname()
|
/net/ax25/ |
D | af_ax25.c | 1078 static int ax25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in ax25_bind() argument 1081 struct full_sockaddr_ax25 *addr = (struct full_sockaddr_ax25 *)uaddr; in ax25_bind() 1159 struct sockaddr *uaddr, int addr_len, int flags) in ax25_connect() argument 1163 struct full_sockaddr_ax25 *fsa = (struct full_sockaddr_ax25 *)uaddr; in ax25_connect() 1436 static int ax25_getname(struct socket *sock, struct sockaddr *uaddr, in ax25_getname() argument 1439 struct full_sockaddr_ax25 *fsa = (struct full_sockaddr_ax25 *)uaddr; in ax25_getname()
|