Home
last modified time | relevance | path

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

/net/sunrpc/xprtrdma/
Dtransport.c275 if (args->addrlen > sizeof(xprt->addr)) { in xprt_setup_rdma()
304 memcpy(&cdata.addr, args->dstaddr, args->addrlen); in xprt_setup_rdma()
309 xprt->addrlen = args->addrlen; in xprt_setup_rdma()
310 memcpy(&xprt->addr, &cdata.addr, xprt->addrlen); in xprt_setup_rdma()
/net/sunrpc/
Dxprtsock.c385 static int xs_send_kvec(struct socket *sock, struct sockaddr *addr, int addrlen, struct kvec *vec, … in xs_send_kvec() argument
389 .msg_namelen = addrlen, in xs_send_kvec()
449 static int xs_sendpages(struct socket *sock, struct sockaddr *addr, int addrlen, struct xdr_buf *xd… in xs_sendpages() argument
461 addrlen = 0; in xs_sendpages()
467 err = xs_send_kvec(sock, addr, addrlen, &xdr->head[0], base, remainder != 0); in xs_sendpages()
641 status = xs_sendpages(transport->sock, xs_addr(xprt), xprt->addrlen, in xs_udp_send_request()
1778 memcpy(&myaddr, &transport->srcaddr, transport->xprt.addrlen); in xs_bind()
1782 transport->xprt.addrlen); in xs_bind()
1942 return kernel_connect(sock, xs_addr(xprt), xprt->addrlen, 0); in xs_local_finish_connecting()
2225 ret = kernel_connect(sock, xs_addr(xprt), xprt->addrlen, O_NONBLOCK); in xs_tcp_finish_connecting()
[all …]
Dsvc_xprt.c1089 dr->addrlen = rqstp->rq_addrlen; in svc_defer()
1122 memcpy(&rqstp->rq_addr, &dr->addr, dr->addrlen); in svc_deferred_recv()
1123 rqstp->rq_addrlen = dr->addrlen; in svc_deferred_recv()
Dclnt.c493 .addrlen = args->addrsize, in rpc_create()
1100 bytes = xprt->addrlen; in rpc_peeraddr()
1267 salen = xprt->addrlen; in rpc_localaddr()
/net/
Dsocket.c1538 SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) in SYSCALL_DEFINE3() argument
1546 err = move_addr_to_kernel(umyaddr, addrlen, &address); in SYSCALL_DEFINE3()
1550 addrlen); in SYSCALL_DEFINE3()
1554 &address, addrlen); in SYSCALL_DEFINE3()
1700 int, addrlen) in SYSCALL_DEFINE3() argument
1709 err = move_addr_to_kernel(uservaddr, addrlen, &address); in SYSCALL_DEFINE3()
1714 security_socket_connect(sock, (struct sockaddr *)&address, addrlen); in SYSCALL_DEFINE3()
1718 err = sock->ops->connect(sock, (struct sockaddr *)&address, addrlen, in SYSCALL_DEFINE3()
3361 int kernel_bind(struct socket *sock, struct sockaddr *addr, int addrlen) in kernel_bind() argument
3363 return sock->ops->bind(sock, addr, addrlen); in kernel_bind()
[all …]
Dcompat.c771 int __user *, addrlen) in COMPAT_SYSCALL_DEFINE6() argument
773 return sys_recvfrom(fd, buf, len, flags | MSG_CMSG_COMPAT, addr, addrlen); in COMPAT_SYSCALL_DEFINE6()
/net/sctp/
Dsocket.c4860 int addrlen; in sctp_getsockopt_peer_addrs() local
4881 addrlen = sctp_get_pf_specific(sk->sk_family) in sctp_getsockopt_peer_addrs()
4883 if (space_left < addrlen) in sctp_getsockopt_peer_addrs()
4885 if (copy_to_user(to, &temp, addrlen)) in sctp_getsockopt_peer_addrs()
4887 to += addrlen; in sctp_getsockopt_peer_addrs()
4889 space_left -= addrlen; in sctp_getsockopt_peer_addrs()
4907 int addrlen; in sctp_copy_laddrs() local
4926 addrlen = sctp_get_pf_specific(sk->sk_family) in sctp_copy_laddrs()
4929 if (space_left < addrlen) { in sctp_copy_laddrs()
4933 memcpy(to, &temp, addrlen); in sctp_copy_laddrs()
[all …]
Dsm_make_chunk.c2750 int addrlen; in sctp_make_asconf() local
2753 addrlen = af->to_addr_param(addr, &addrparam); in sctp_make_asconf()
2754 if (!addrlen) in sctp_make_asconf()
2756 length += addrlen; in sctp_make_asconf()
2768 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf()
2893 int addrlen; in sctp_make_asconf_set_prim() local
2896 addrlen = af->to_addr_param(addr, &addrparam); in sctp_make_asconf_set_prim()
2897 if (!addrlen) in sctp_make_asconf_set_prim()
2899 len += addrlen; in sctp_make_asconf_set_prim()
2911 sctp_addto_chunk(retval, addrlen, &addrparam); in sctp_make_asconf_set_prim()
Dipv6.c752 char *msgname, int *addrlen) in sctp_inet6_event_msgname() argument
780 *addrlen = sctp_v6_addr_to_user(sctp_sk(asoc->base.sk), addr); in sctp_inet6_event_msgname()
/net/llc/
Daf_llc.c303 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind() argument
312 if (unlikely(!sock_flag(sk, SOCK_ZAPPED) || addrlen != sizeof(*addr))) in llc_ui_bind()
433 int addrlen, int flags) in llc_ui_connect() argument
441 if (unlikely(addrlen != sizeof(*addr))) in llc_ui_connect()
/net/decnet/
Daf_decnet.c907 static int __dn_connect(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *timeo, int fl… in __dn_connect() argument
936 if (addr == NULL || addrlen != sizeof(struct sockaddr_dn)) in __dn_connect()
975 static int dn_connect(struct socket *sock, struct sockaddr *uaddr, int addrlen, int flags) in dn_connect() argument
983 err = __dn_connect(sk, addr, addrlen, &timeo, 0); in dn_connect()
989 static inline int dn_check_state(struct sock *sk, struct sockaddr_dn *addr, int addrlen, long *time… in dn_check_state() argument
1002 return __dn_connect(sk, addr, addrlen, timeo, flags); in dn_check_state()