Home
last modified time | relevance | path

Searched refs:addrlen (Results 1 – 13 of 13) sorted by relevance

/net/rds/
Dtcp_connect.c95 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 = kernel_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 = kernel_connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect()
/net/sctp/
Ddiag.c71 int addrlen = sizeof(struct sockaddr_storage); in inet_diag_msg_sctpladdrs_fill() local
79 attr = nla_reserve(skb, INET_DIAG_LOCALS, addrlen * addrcnt); in inet_diag_msg_sctpladdrs_fill()
86 memset(info + sizeof(laddr->a), 0, addrlen - sizeof(laddr->a)); in inet_diag_msg_sctpladdrs_fill()
87 info += addrlen; in inet_diag_msg_sctpladdrs_fill()
96 int addrlen = sizeof(struct sockaddr_storage); in inet_diag_msg_sctpaddrs_fill() local
102 addrlen * asoc->peer.transport_count); in inet_diag_msg_sctpaddrs_fill()
111 addrlen - sizeof(from->ipaddr)); in inet_diag_msg_sctpaddrs_fill()
112 info += addrlen; in inet_diag_msg_sctpaddrs_fill()
228 int addrlen = sizeof(struct sockaddr_storage); in inet_assoc_attr_size() local
237 + nla_total_size(addrlen * asoc->peer.transport_count) in inet_assoc_attr_size()
[all …]
Dsm_make_chunk.c2775 int addrlen; in sctp_make_asconf() local
2778 addrlen = af->to_addr_param(addr, &addrparam); in sctp_make_asconf()
2779 if (!addrlen) in sctp_make_asconf()
2781 length += addrlen; in sctp_make_asconf()
2794 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf()
2918 int addrlen; in sctp_make_asconf_set_prim() local
2920 addrlen = af->to_addr_param(addr, &addrparam); in sctp_make_asconf_set_prim()
2921 if (!addrlen) in sctp_make_asconf_set_prim()
2923 len += addrlen; in sctp_make_asconf_set_prim()
2935 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf_set_prim()
Dsocket.c6194 int addrlen; in sctp_getsockopt_peer_addrs() local
6215 addrlen = sctp_get_pf_specific(sk->sk_family) in sctp_getsockopt_peer_addrs()
6217 if (space_left < addrlen) in sctp_getsockopt_peer_addrs()
6219 if (copy_to_user(to, &temp, addrlen)) in sctp_getsockopt_peer_addrs()
6221 to += addrlen; in sctp_getsockopt_peer_addrs()
6223 space_left -= addrlen; in sctp_getsockopt_peer_addrs()
6241 int addrlen; in sctp_copy_laddrs() local
6260 addrlen = sctp_get_pf_specific(sk->sk_family) in sctp_copy_laddrs()
6263 if (space_left < addrlen) { in sctp_copy_laddrs()
6267 memcpy(to, &temp, addrlen); in sctp_copy_laddrs()
[all …]
Dipv6.c811 char *msgname, int *addrlen) in sctp_inet6_event_msgname() argument
839 *addrlen = sctp_v6_addr_to_user(sctp_sk(asoc->base.sk), addr); in sctp_inet6_event_msgname()
/net/sunrpc/xprtrdma/
Dsvc_rdma_backchannel.c271 if (args->addrlen > sizeof(xprt->addr)) { in xprt_setup_rdma_bc()
295 memcpy(&xprt->addr, args->dstaddr, args->addrlen); in xprt_setup_rdma_bc()
296 xprt->addrlen = args->addrlen; in xprt_setup_rdma_bc()
Dtransport.c319 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/
Dsocket.c1642 int __sys_bind(int fd, struct sockaddr __user *umyaddr, int addrlen) in __sys_bind() argument
1650 err = move_addr_to_kernel(umyaddr, addrlen, &address); in __sys_bind()
1654 addrlen); in __sys_bind()
1658 &address, addrlen); in __sys_bind()
1665 SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) in SYSCALL_DEFINE3() argument
1667 return __sys_bind(fd, umyaddr, addrlen); in SYSCALL_DEFINE3()
1819 int __sys_connect(int fd, struct sockaddr __user *uservaddr, int addrlen) in __sys_connect() argument
1828 err = move_addr_to_kernel(uservaddr, addrlen, &address); in __sys_connect()
1833 security_socket_connect(sock, (struct sockaddr *)&address, addrlen); in __sys_connect()
1837 err = sock->ops->connect(sock, (struct sockaddr *)&address, addrlen, in __sys_connect()
[all …]
Dcompat.c684 int __user *addrlen) in __compat_sys_recvfrom() argument
687 addrlen); in __compat_sys_recvfrom()
697 int __user *, addrlen) in COMPAT_SYSCALL_DEFINE6() argument
699 return __compat_sys_recvfrom(fd, buf, len, flags, addr, addrlen); in COMPAT_SYSCALL_DEFINE6()
/net/sunrpc/
Dxprtsock.c814 static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xd… in xs_sendpages() argument
818 .msg_namelen = addrlen, in xs_sendpages()
1067 status = xs_sendpages(transport->sock, xs_addr(xprt), xprt->addrlen, in xs_udp_send_request()
1838 memcpy(&myaddr, &transport->srcaddr, transport->xprt.addrlen); in xs_bind()
1842 transport->xprt.addrlen); in xs_bind()
1996 return kernel_connect(sock, xs_addr(xprt), xprt->addrlen, 0); in xs_local_finish_connecting()
2365 ret = kernel_connect(sock, xs_addr(xprt), xprt->addrlen, O_NONBLOCK); in xs_tcp_finish_connecting()
2897 if (args->addrlen > sizeof(xprt->addr)) { in xs_setup_xprt()
2912 memcpy(&xprt->addr, args->dstaddr, args->addrlen); in xs_setup_xprt()
2913 xprt->addrlen = args->addrlen; in xs_setup_xprt()
[all …]
Dsvc_xprt.c1203 dr->addrlen = rqstp->rq_addrlen; in svc_defer()
1237 memcpy(&rqstp->rq_addr, &dr->addr, dr->addrlen); in svc_deferred_recv()
1238 rqstp->rq_addrlen = dr->addrlen; in svc_deferred_recv()
Dclnt.c526 .addrlen = args->addrsize, in rpc_create()
1280 bytes = xprt->addrlen; in rpc_peeraddr()
1448 salen = xprt->addrlen; in rpc_localaddr()
/net/llc/
Daf_llc.c340 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind() argument
350 if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) in llc_ui_bind()
480 int addrlen, int flags) in llc_ui_connect() argument
488 if (unlikely(addrlen != sizeof(*addr))) in llc_ui_connect()