Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 25 of 44) sorted by relevance

12

/fs/lockd/
Dmon.c63 static inline struct sockaddr *nsm_addr(const struct nsm_handle *nsm) in nsm_addr()
65 return (struct sockaddr *)&nsm->sm_addr; in nsm_addr()
77 .address = (struct sockaddr *)&sin, in nsm_create()
223 const struct sockaddr *sap) in nsm_lookup_addr()
272 static struct nsm_handle *nsm_create_handle(const struct sockaddr *sap, in nsm_create_handle()
318 const struct sockaddr *sap, in nsm_get_handle()
Dhost.c55 const struct sockaddr *sap; /* address to search for */
75 static unsigned int __nlm_hash_addr4(const struct sockaddr *sap) in __nlm_hash_addr4()
81 static unsigned int __nlm_hash_addr6(const struct sockaddr *sap) in __nlm_hash_addr6()
91 static unsigned int nlm_hash_address(const struct sockaddr *sap) in nlm_hash_address()
216 struct nlm_host *nlmclnt_lookup_host(const struct sockaddr *sap, in nlmclnt_lookup_host()
335 struct sockaddr *src_sap = svc_daddr(rqstp); in nlmsvc_lookup_host()
Dsvc.c315 (struct sockaddr *)&sin); in lockd_inetaddr_event()
346 (struct sockaddr *)&sin6); in lockd_inet6addr_event()
/fs/nfs/
Dnfs4client.c247 struct sockaddr *sap = (struct sockaddr *)&cb_addr; in nfs4_alloc_client()
792 static bool nfs4_cb_match_client(const struct sockaddr *addr, in nfs4_cb_match_client()
795 struct sockaddr *clap = (struct sockaddr *)&clp->cl_addr; in nfs4_cb_match_client()
821 nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr, in nfs4_find_client_sessionid()
851 nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr, in nfs4_find_client_sessionid()
863 const struct sockaddr *addr, in nfs4_set_client()
931 const struct sockaddr *ds_addr, int ds_addrlen, in nfs4_set_ds_client()
1294 struct sockaddr *sap, size_t salen, struct net *net) in nfs4_update_server()
1307 struct sockaddr *localaddr = (struct sockaddr *)&address; in nfs4_update_server()
Dinternal.h78 const struct sockaddr *addr; /* Address of the server */
118 struct sockaddr address;
130 struct sockaddr address;
186 struct sockaddr *sap;
222 nfs4_find_client_sessionid(struct net *, const struct sockaddr *,
228 struct sockaddr *sap, size_t salen,
240 const struct sockaddr *ds_addr,
248 const struct sockaddr *ds_addr, int ds_addrlen,
845 static inline void nfs_set_port(struct sockaddr *sap, int *port, in nfs_set_port()
Dpnfs_nfs.c581 same_sockaddr(struct sockaddr *addr1, struct sockaddr *addr2) in same_sockaddr()
632 struct sockaddr *sa1, *sa2; in _same_data_server_addrs_locked()
636 sa1 = (struct sockaddr *)&da1->da_addr; in _same_data_server_addrs_locked()
639 sa2 = (struct sockaddr *)&da2->da_addr; in _same_data_server_addrs_locked()
810 const struct sockaddr *ds_addr,
856 .dstaddr = (struct sockaddr *)&da->da_addr, in _nfs4_pnfs_v3_ds_connect()
866 (struct sockaddr *)&da->da_addr, in _nfs4_pnfs_v3_ds_connect()
907 .dstaddr = (struct sockaddr *)&da->da_addr, in _nfs4_pnfs_v4_ds_connect()
931 (struct sockaddr *)&da->da_addr, in _nfs4_pnfs_v4_ds_connect()
1098 if (!rpc_pton(net, buf, portstr-buf, (struct sockaddr *)&da->da_addr, in nfs4_decode_mp_ds_addr()
Dsuper.c330 struct sockaddr *sap = (struct sockaddr *) &nfss->mountd_address; in nfs_show_mountd_netid()
362 struct sockaddr *sap = (struct sockaddr *)&nfss->mountd_address; in nfs_show_mountd_options()
808 .sap = (struct sockaddr *) in nfs_request_mount()
978 !rpc_cmp_addr((struct sockaddr *)&ctx->nfs_server.address, in nfs_compare_remount_data()
979 (struct sockaddr *)&nfss->nfs_client->cl_addr)) in nfs_compare_remount_data()
1119 struct sockaddr *sap1, *sap2; in nfs_compare_super_address()
1126 sap1 = (struct sockaddr *)&server1->nfs_client->cl_addr; in nfs_compare_super_address()
1127 sap2 = (struct sockaddr *)&server2->nfs_client->cl_addr; in nfs_compare_super_address()
Ddns_resolve.c19 struct sockaddr *sa, size_t salen) in nfs_dns_resolve_name()
195 rpc_ntop((struct sockaddr *)&item->addr, buf, sizeof(buf)); in nfs_dns_show()
246 (struct sockaddr *)&key.addr, in nfs_dns_parse()
344 size_t namelen, struct sockaddr *sa, size_t salen) in nfs_dns_resolve_name()
Ddns_resolve.h35 size_t namelen, struct sockaddr *sa, size_t salen);
Dfs_context.c254 static int nfs_verify_server_address(struct sockaddr *addr) in nfs_verify_server_address()
894 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs23_parse_monolithic()
1121 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs4_parse_monolithic()
1237 struct sockaddr *sap = (struct sockaddr *)&ctx->nfs_server.address; in nfs_fs_context_validate()
Dclient.c286 const struct sockaddr *sap = data->addr; in nfs_match_client()
292 const struct sockaddr *clap = (struct sockaddr *)&clp->cl_addr; in nfs_match_client()
509 .address = (struct sockaddr *)&clp->cl_addr, in nfs_create_rpc_client()
567 .address = (struct sockaddr *)&clp->cl_addr, in nfs_start_lockd()
673 .addr = (const struct sockaddr *)&ctx->nfs_server.address, in nfs_init_server()
Dnfs3client.c81 const struct sockaddr *ds_addr, int ds_addrlen, in nfs3_set_ds_client()
Dnfs4namespace.c167 size_t nfs_parse_server_name(char *string, size_t len, struct sockaddr *sa, in nfs_parse_server_name()
483 struct sockaddr *sap; in nfs4_try_replacing_one_location()
Dcallback.h99 struct sockaddr *csa_addr;
/fs/cifs/
Dsmbdirect.h263 struct TCP_Server_Info *server, struct sockaddr *dstaddr);
309 struct TCP_Server_Info *server, struct sockaddr *dstaddr) {return NULL;} in smbd_get_connection()
Ddns_resolve.c75 rc = cifs_convert_address((struct sockaddr *)&ss, hostname, len); in dns_resolve_server_name_to_ip()
Dcifsproto.h92 extern bool cifs_match_ipaddr(struct sockaddr *srcaddr, struct sockaddr *rhs);
154 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len);
155 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port);
Dconnect.c324 rc = cifs_convert_address((struct sockaddr *)&server->dstaddr, ipaddr, in reconn_set_ipaddr()
813 cifs_set_port((struct sockaddr *)&server->dstaddr, CIFS_PORT); in is_smb_response()
1407 struct sockaddr *dstaddr = (struct sockaddr *)&vol->dstaddr; in cifs_parse_mount_options()
2081 (struct sockaddr *)&vol->srcaddr, in cifs_parse_mount_options()
2295 cifs_match_ipaddr(struct sockaddr *srcaddr, struct sockaddr *rhs) in cifs_match_ipaddr()
2322 match_port(struct TCP_Server_Info *server, struct sockaddr *addr) in match_port()
2356 match_address(struct TCP_Server_Info *server, struct sockaddr *addr, in match_address()
2357 struct sockaddr *srcaddr) in match_address()
2386 if (!cifs_match_ipaddr(srcaddr, (struct sockaddr *)&server->srcaddr)) in match_address()
2417 struct sockaddr *addr = (struct sockaddr *)&vol->dstaddr; in match_server()
[all …]
Dsess.c40 struct sockaddr_in *i4 = (struct sockaddr_in *)&iface->sockaddr; in is_server_using_iface()
41 struct sockaddr_in6 *i6 = (struct sockaddr_in6 *)&iface->sockaddr; in is_server_using_iface()
45 if (server->dstaddr.ss_family != iface->sockaddr.ss_family) in is_server_using_iface()
182 struct sockaddr_in *ipv4 = (struct sockaddr_in *)&iface->sockaddr; in cifs_ses_add_channel()
183 struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)&iface->sockaddr; in cifs_ses_add_channel()
187 if (iface->sockaddr.ss_family == AF_INET) in cifs_ses_add_channel()
248 memcpy(&vol.dstaddr, &iface->sockaddr, sizeof(struct sockaddr_storage)); in cifs_ses_add_channel()
Dfscache.c45 const struct sockaddr *sa = (struct sockaddr *) &server->dstaddr; in cifs_fscache_get_client_cookie()
Dcifs_debug.c148 struct sockaddr_in *ipv4 = (struct sockaddr_in *)&iface->sockaddr; in cifs_dump_iface()
149 struct sockaddr_in6 *ipv6 = (struct sockaddr_in6 *)&iface->sockaddr; in cifs_dump_iface()
158 if (iface->sockaddr.ss_family == AF_INET) in cifs_dump_iface()
160 else if (iface->sockaddr.ss_family == AF_INET6) in cifs_dump_iface()
/fs/dlm/
Dlowcomms.c289 struct sockaddr *sa_out, bool try_new_addr) in nodeid_to_addr()
794 len = newsock->ops->getname(newsock, (struct sockaddr *)&peeraddr, 2); in accept_from_sock()
932 struct sockaddr *addr = (struct sockaddr *)&localaddr; in sctp_bind_addrs()
1020 result = sock->ops->connect(sock, (struct sockaddr *)&daddr, addr_len, in sctp_connect_to_sock()
1103 result = sock->ops->bind(sock, (struct sockaddr *) &src_addr, in tcp_connect_to_sock()
1117 result = sock->ops->connect(sock, (struct sockaddr *)&saddr, addr_len, in tcp_connect_to_sock()
1188 result = sock->ops->bind(sock, (struct sockaddr *) saddr, addr_len); in tcp_create_listen_sock()
/fs/nfsd/
Dfault_inject.c67 size = rpc_pton(net, write_buf, size, (struct sockaddr *)&sa, sizeof(sa)); in fault_inject_write()
Dflexfilelayout.c100 rpc_ntop((struct sockaddr *)&rqstp->rq_daddr, in nfsd4_ff_proc_getdeviceinfo()
/fs/afs/
Drxrpc.c64 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()
67 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()
73 ret = kernel_bind(socket, (struct sockaddr *) &srx, sizeof(srx)); in afs_open_socket()

12