/net/rds/ |
D | tcp_connect.c | 95 int addrlen; in rds_tcp_conn_path_connect() local 135 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect() 141 addrlen = sizeof(sin); in rds_tcp_conn_path_connect() 144 ret = sock->ops->bind(sock, addr, addrlen); in rds_tcp_conn_path_connect() 158 addrlen = sizeof(sin6); in rds_tcp_conn_path_connect() 164 addrlen = sizeof(sin); in rds_tcp_conn_path_connect() 172 ret = sock->ops->connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect()
|
/net/sctp/ |
D | diag.c | 75 int addrlen = sizeof(struct sockaddr_storage); in inet_diag_msg_sctpladdrs_fill() local 83 attr = nla_reserve(skb, INET_DIAG_LOCALS, addrlen * addrcnt); in inet_diag_msg_sctpladdrs_fill() 90 memset(info + sizeof(laddr->a), 0, addrlen - sizeof(laddr->a)); in inet_diag_msg_sctpladdrs_fill() 91 info += addrlen; in inet_diag_msg_sctpladdrs_fill() 100 int addrlen = sizeof(struct sockaddr_storage); in inet_diag_msg_sctpaddrs_fill() local 106 addrlen * asoc->peer.transport_count); in inet_diag_msg_sctpaddrs_fill() 115 addrlen - sizeof(from->ipaddr)); in inet_diag_msg_sctpaddrs_fill() 116 info += addrlen; in inet_diag_msg_sctpaddrs_fill() 231 int addrlen = sizeof(struct sockaddr_storage); in inet_assoc_attr_size() local 245 + nla_total_size(addrlen * asoc->peer.transport_count) in inet_assoc_attr_size() [all …]
|
D | sm_make_chunk.c | 2763 int addrlen; in sctp_make_asconf() local 2766 addrlen = af->to_addr_param(addr, &addrparam); in sctp_make_asconf() 2767 if (!addrlen) in sctp_make_asconf() 2769 length += addrlen; in sctp_make_asconf() 2782 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf() 2906 int addrlen; in sctp_make_asconf_set_prim() local 2908 addrlen = af->to_addr_param(addr, &addrparam); in sctp_make_asconf_set_prim() 2909 if (!addrlen) in sctp_make_asconf_set_prim() 2911 len += addrlen; in sctp_make_asconf_set_prim() 2923 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf_set_prim()
|
D | socket.c | 6162 int addrlen; in sctp_getsockopt_peer_addrs() local 6183 addrlen = sctp_get_pf_specific(sk->sk_family) in sctp_getsockopt_peer_addrs() 6185 if (space_left < addrlen) in sctp_getsockopt_peer_addrs() 6187 if (copy_to_user(to, &temp, addrlen)) in sctp_getsockopt_peer_addrs() 6189 to += addrlen; in sctp_getsockopt_peer_addrs() 6191 space_left -= addrlen; in sctp_getsockopt_peer_addrs() 6209 int addrlen; in sctp_copy_laddrs() local 6228 addrlen = sctp_get_pf_specific(sk->sk_family) in sctp_copy_laddrs() 6231 if (space_left < addrlen) { in sctp_copy_laddrs() 6235 memcpy(to, &temp, addrlen); in sctp_copy_laddrs() [all …]
|
D | ipv6.c | 798 char *msgname, int *addrlen) in sctp_inet6_event_msgname() argument 826 *addrlen = sctp_v6_addr_to_user(sctp_sk(asoc->base.sk), addr); in sctp_inet6_event_msgname()
|
/net/sunrpc/xprtrdma/ |
D | svc_rdma_backchannel.c | 286 if (args->addrlen > sizeof(xprt->addr)) { in xprt_setup_rdma_bc() 310 memcpy(&xprt->addr, args->dstaddr, args->addrlen); in xprt_setup_rdma_bc() 311 xprt->addrlen = args->addrlen; in xprt_setup_rdma_bc()
|
D | transport.c | 319 if (args->addrlen > sizeof(xprt->addr)) in xprt_setup_rdma() 344 xprt->addrlen = args->addrlen; in xprt_setup_rdma() 345 memcpy(&xprt->addr, sap, xprt->addrlen); in xprt_setup_rdma()
|
/net/ |
D | socket.c | 1634 int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen) in __sys_bind() argument 1642 err = move_addr_to_kernel(umyaddr, addrlen, &address); in __sys_bind() 1646 addrlen); in __sys_bind() 1650 &address, addrlen); in __sys_bind() 1657 SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) in SYSCALL_DEFINE3() argument 1659 return __sys_bind(fd, umyaddr, addrlen); in SYSCALL_DEFINE3() 1811 int __sys_connect(int fd, struct sockaddr __user *uservaddr, int addrlen) in __sys_connect() argument 1820 err = move_addr_to_kernel(uservaddr, addrlen, &address); in __sys_connect() 1825 security_socket_connect(sock, (struct sockaddr *)&address, addrlen); in __sys_connect() 1829 err = sock->ops->connect(sock, (struct sockaddr *)&address, addrlen, in __sys_connect() [all …]
|
D | compat.c | 683 int __user *addrlen) in __compat_sys_recvfrom() argument 686 addrlen); in __compat_sys_recvfrom() 696 int __user *, addrlen) in COMPAT_SYSCALL_DEFINE6() argument 698 return __compat_sys_recvfrom(fd, buf, len, flags, addr, addrlen); in COMPAT_SYSCALL_DEFINE6()
|
/net/sunrpc/ |
D | xprtsock.c | 813 static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xd… in xs_sendpages() argument 817 .msg_namelen = addrlen, in xs_sendpages() 1042 status = xs_sendpages(transport->sock, xs_addr(xprt), xprt->addrlen, in xs_udp_send_request() 1803 memcpy(&myaddr, &transport->srcaddr, transport->xprt.addrlen); in xs_bind() 1807 transport->xprt.addrlen); in xs_bind() 1961 return kernel_connect(sock, xs_addr(xprt), xprt->addrlen, 0); in xs_local_finish_connecting() 2330 ret = kernel_connect(sock, xs_addr(xprt), xprt->addrlen, O_NONBLOCK); in xs_tcp_finish_connecting() 2859 if (args->addrlen > sizeof(xprt->addr)) { in xs_setup_xprt() 2874 memcpy(&xprt->addr, args->dstaddr, args->addrlen); in xs_setup_xprt() 2875 xprt->addrlen = args->addrlen; in xs_setup_xprt() [all …]
|
D | svc_xprt.c | 1195 dr->addrlen = rqstp->rq_addrlen; in svc_defer() 1229 memcpy(&rqstp->rq_addr, &dr->addr, dr->addrlen); in svc_deferred_recv() 1230 rqstp->rq_addrlen = dr->addrlen; in svc_deferred_recv()
|
D | clnt.c | 526 .addrlen = args->addrsize, in rpc_create() 1280 bytes = xprt->addrlen; in rpc_peeraddr() 1448 salen = xprt->addrlen; in rpc_localaddr()
|
/net/llc/ |
D | af_llc.c | 319 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind() argument 328 if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) in llc_ui_bind() 451 int addrlen, int flags) in llc_ui_connect() argument 459 if (unlikely(addrlen != sizeof(*addr))) in llc_ui_connect()
|
/net/decnet/ |
D | af_decnet.c | 899 static int __dn_connect(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *timeo, int fl… in __dn_connect() argument 928 if (addr == NULL || addrlen != sizeof(struct sockaddr_dn)) in __dn_connect() 967 static int dn_connect(struct socket *sock, struct sockaddr *uaddr, int addrlen, int flags) in dn_connect() argument 975 err = __dn_connect(sk, addr, addrlen, &timeo, 0); in dn_connect() 981 static inline int dn_check_state(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *time… in dn_check_state() argument 994 return __dn_connect(sk, addr, addrlen, timeo, flags); in dn_check_state()
|