Home
last modified time | relevance | path

Searched refs:salen (Results 1 – 22 of 22) sorted by relevance

/kernel/linux/linux-5.10/net/sunrpc/
Daddr.c143 struct sockaddr *sap, const size_t salen) in rpc_pton4() argument
148 if (buflen > INET_ADDRSTRLEN || salen < sizeof(struct sockaddr_in)) in rpc_pton4()
200 struct sockaddr *sap, const size_t salen) in rpc_pton6() argument
207 salen < sizeof(struct sockaddr_in6)) in rpc_pton6()
223 struct sockaddr *sap, const size_t salen) in rpc_pton6() argument
245 struct sockaddr *sap, const size_t salen) in rpc_pton() argument
251 return rpc_pton6(net, buf, buflen, sap, salen); in rpc_pton()
252 return rpc_pton4(buf, buflen, sap, salen); in rpc_pton()
312 const size_t salen) in rpc_uaddr2sockaddr() argument
340 if (rpc_pton(net, buf, strlen(buf), sap, salen) == 0) in rpc_uaddr2sockaddr()
Drpcb_clnt.c345 struct sockaddr *srvaddr, size_t salen, in rpcb_create() argument
353 .addrsize = salen, in rpcb_create()
655 size_t salen; in rpcb_getport_async() local
680 salen = rpc_peeraddr(clnt, sap, sizeof(addr)); in rpcb_getport_async()
706 xprt->servername, sap, salen, in rpcb_getport_async()
Dsvcsock.c628 struct sockaddr *sa, int salen, in svc_udp_create() argument
631 return svc_create_socket(serv, IPPROTO_UDP, net, sa, salen, flags); in svc_udp_create()
1203 struct sockaddr *sa, int salen, in svc_tcp_create() argument
1206 return svc_create_socket(serv, IPPROTO_TCP, net, sa, salen, flags); in svc_tcp_create()
1382 int salen; in svc_addsock() local
1405 salen = kernel_getsockname(svsk->sk_sock, sin); in svc_addsock()
1406 if (salen >= 0) in svc_addsock()
1407 svc_xprt_set_local(&svsk->sk_xprt, sin, salen); in svc_addsock()
Dclnt.c1338 static int rpc_sockname(struct net *net, struct sockaddr *sap, size_t salen, in rpc_sockname() argument
1371 err = kernel_connect(sock, sap, salen, 0); in rpc_sockname()
1450 size_t salen; in rpc_localaddr() local
1455 salen = xprt->addrlen; in rpc_localaddr()
1456 memcpy(sap, &xprt->addr, salen); in rpc_localaddr()
1461 err = rpc_sockname(net, sap, salen, buf); in rpc_localaddr()
/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c607 socklen_t salen) in check_sockaddr() argument
627 fprintf(stderr, "accept: Unknown pf %d, salen %u\n", pf, salen); in check_sockaddr()
631 if (salen != wanted_size) in check_sockaddr()
633 (int)salen, wanted_size); in check_sockaddr()
640 static void check_getpeername(int fd, struct sockaddr_storage *ss, socklen_t salen) in check_getpeername() argument
650 if (peersalen != salen) { in check_getpeername()
651 fprintf(stderr, "%s: %d vs %d\n", __func__, peersalen, salen); in check_getpeername()
661 xgetnameinfo((struct sockaddr *)ss, salen, in check_getpeername()
668 __func__, a, c, b, d, peersalen, salen); in check_getpeername()
675 socklen_t salen = sizeof(ss); in check_getpeername_connect() local
[all …]
/kernel/linux/linux-5.10/include/linux/sunrpc/
Dsvc_xprt.h153 const size_t salen) in svc_xprt_set_local() argument
155 memcpy(&xprt->xpt_local, sa, salen); in svc_xprt_set_local()
156 xprt->xpt_locallen = salen; in svc_xprt_set_local()
160 const size_t salen) in svc_xprt_set_remote() argument
162 memcpy(&xprt->xpt_remote, sa, salen); in svc_xprt_set_remote()
163 xprt->xpt_remotelen = salen; in svc_xprt_set_remote()
/kernel/linux/linux-5.10/fs/nfs/
Dnfs4namespace.c168 size_t salen, struct net *net, int port) in nfs_parse_server_name() argument
172 ret = rpc_pton(net, string, len, sa, salen); in nfs_parse_server_name()
174 ret = rpc_uaddr2sockaddr(net, string, len, sa, salen); in nfs_parse_server_name()
176 ret = nfs_dns_resolve_name(net, string, len, sa, salen); in nfs_parse_server_name()
485 size_t salen; in nfs4_try_replacing_one_location() local
503 salen = nfs_parse_server_name(buf->data, buf->len, in nfs4_try_replacing_one_location()
505 if (salen == 0) in nfs4_try_replacing_one_location()
514 error = nfs4_update_server(server, hostname, sap, salen, net); in nfs4_try_replacing_one_location()
Ddns_resolve.c19 struct sockaddr *sa, size_t salen) in nfs_dns_resolve_name() argument
28 ret = rpc_pton(net, ip_addr, ip_len, sa, salen); in nfs_dns_resolve_name()
344 size_t namelen, struct sockaddr *sa, size_t salen) in nfs_dns_resolve_name() argument
356 if (salen >= item->addrlen) { in nfs_dns_resolve_name()
Ddns_resolve.h35 size_t namelen, struct sockaddr *sa, size_t salen);
Dmount_clnt.c160 .addrsize = info->salen, in nfs_mount()
245 .addrsize = info->salen, in nfs_umount()
Dnfs4client.c1294 struct sockaddr *sap, size_t salen, struct net *net) in nfs4_update_server() argument
1302 .addrlen = salen, in nfs4_update_server()
1323 error = nfs4_set_client(server, hostname, sap, salen, buf, in nfs4_update_server()
Dinternal.h187 size_t salen; member
228 struct sockaddr *sap, size_t salen,
Dnfs4_fs.h286 size_t salen, struct net *net, int port);
Dsuper.c844 request.salen = ctx->mount_server.addrlen; in nfs_request_mount()
/kernel/linux/linux-5.10/fs/lockd/
Dhost.c56 const size_t salen; /* it's length */ member
121 nsm = nsm_get_handle(ni->net, ni->sap, ni->salen, in nlm_alloc_host()
137 memcpy(nlm_addr(host), ni->sap, ni->salen); in nlm_alloc_host()
138 host->h_addrlen = ni->salen; in nlm_alloc_host()
217 const size_t salen, in nlmclnt_lookup_host() argument
228 .salen = salen, in nlmclnt_lookup_host()
341 .salen = rqstp->rq_addrlen, in nlmsvc_lookup_host()
Dmon.c273 const size_t salen, in nsm_create_handle() argument
285 memcpy(nsm_addr(new), sap, salen); in nsm_create_handle()
286 new->sm_addrlen = salen; in nsm_create_handle()
316 const size_t salen, const char *hostname, in nsm_get_handle() argument
361 new = nsm_create_handle(sap, salen, hostname, hostname_len); in nsm_get_handle()
/kernel/linux/linux-5.10/include/linux/lockd/
Dlockd.h226 const size_t salen,
254 const size_t salen,
/kernel/linux/linux-5.10/net/netfilter/ipvs/
Dip_vs_sync.c1447 static void get_mcast_sockaddr(union ipvs_sockaddr *sa, int *salen, in get_mcast_sockaddr() argument
1456 *salen = sizeof(sa->in6); in get_mcast_sockaddr()
1463 *salen = sizeof(sa->in); in get_mcast_sockaddr()
1476 int result, salen; in make_send_sock() local
1509 get_mcast_sockaddr(&mcast_addr, &salen, &ipvs->mcfg, id); in make_send_sock()
1511 salen, 0); in make_send_sock()
1533 int result, salen; in make_receive_sock() local
1549 get_mcast_sockaddr(&mcast_addr, &salen, &ipvs->bcfg, id); in make_receive_sock()
1551 result = sock->ops->bind(sock, (struct sockaddr *)&mcast_addr, salen); in make_receive_sock()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Dsvc_rdma_transport.c70 struct sockaddr *sa, int salen,
300 struct sockaddr *sa, int salen, in svc_rdma_create() argument
344 svc_xprt_set_local(&cma_xprt->sc_xprt, sa, salen); in svc_rdma_create()
/kernel/liteos_m/kal/libc/newlib/porting/include/
Dnetdb.h104 int getnameinfo(const struct sockaddr * __restrict sa, socklen_t salen, char * __restrict host, \
/kernel/linux/linux-5.10/fs/nfsd/
Dnfsctl.c259 size_t salen = sizeof(address); in write_unlock_ip() local
274 if (rpc_pton(net, fo_path, size, sap, salen) == 0) in write_unlock_ip()
/kernel/liteos_a/net/lwip-2.1/porting/src/
Dsockets.c175 socklen_t salen = sizeof(sa); in ip_addr_isbroadcast_bysock() local
181 if (lwip_getsockname(s, &sa, &salen) == -1) { in ip_addr_isbroadcast_bysock()