/kernel/linux/linux-5.10/fs/cifs/ |
H A D | dns_resolve.c | 10 * Contains the CIFS DFS upcall routines used for hostname to 49 const char *hostname, *sep; in dns_resolve_server_name_to_ip() local 64 hostname = unc + 2; in dns_resolve_server_name_to_ip() 67 sep = memchr(hostname, '/', len); in dns_resolve_server_name_to_ip() 69 len = sep - hostname; in dns_resolve_server_name_to_ip() 74 /* Try to interpret hostname as an IPv4 or IPv6 address */ in dns_resolve_server_name_to_ip() 75 rc = cifs_convert_address((struct sockaddr *)&ss, hostname, len); in dns_resolve_server_name_to_ip() 80 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip() 84 __func__, len, len, hostname); in dns_resolve_server_name_to_ip() 87 __func__, len, len, hostname, *ip_add in dns_resolve_server_name_to_ip() [all...] |
H A D | cifs_spnego.c | 107 const char *hostname = server->hostname; in cifs_get_spnego_key() local 111 host=hostname sec=mechanism uid=0xFF user=username */ in cifs_get_spnego_key() 113 HOST_KEY_LEN + strlen(hostname) + in cifs_get_spnego_key() 129 /* start with version and hostname portion of UNC string */ in cifs_get_spnego_key() 132 hostname); in cifs_get_spnego_key()
|
H A D | cifs_debug.h | 85 if (server && server->hostname) \ 86 sn = server->hostname; \ 147 server->hostname, ##__VA_ARGS__); \
|
H A D | trace.h | 854 char *hostname), 855 TP_ARGS(currmid, hostname), 858 __field(char *, hostname) 862 __entry->hostname = hostname; 865 __entry->hostname, 872 char *hostname), \ 873 TP_ARGS(currmid, hostname)) 880 char *hostname, 883 TP_ARGS(currmid, hostname, credit [all...] |
/kernel/linux/linux-6.6/fs/smb/client/ |
H A D | dns_resolve.c | 10 * Contains the CIFS DFS upcall routines used for hostname to 34 const char *hostname, *sep; in dns_resolve_server_name_to_ip() local 49 hostname = unc + 2; in dns_resolve_server_name_to_ip() 52 sep = memchr(hostname, '/', len); in dns_resolve_server_name_to_ip() 54 len = sep - hostname; in dns_resolve_server_name_to_ip() 59 /* Try to interpret hostname as an IPv4 or IPv6 address */ in dns_resolve_server_name_to_ip() 60 rc = cifs_convert_address(ip_addr, hostname, len); in dns_resolve_server_name_to_ip() 63 hostname); in dns_resolve_server_name_to_ip() 68 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len, in dns_resolve_server_name_to_ip() 72 __func__, len, len, hostname); in dns_resolve_server_name_to_ip() [all...] |
H A D | trace.h | 907 TP_PROTO(char *hostname, 910 TP_ARGS(hostname, conn_id, dst_addr), 912 __string(hostname, hostname) 922 __assign_str(hostname, hostname); 926 __get_str(hostname), 932 TP_PROTO(char *hostname, \ 935 TP_ARGS(hostname, conn_id, addr)) 942 TP_PROTO(char *hostname, __u6 [all...] |
H A D | cifs_debug.h | 87 __FILE__, server->hostname, \ 91 server->hostname, ##__VA_ARGS__); \ 94 server->hostname, ##__VA_ARGS__); \ 147 server->hostname, ##__VA_ARGS__); \
|
H A D | cifs_spnego.c | 95 const char *hostname = server->hostname; in cifs_get_spnego_key() local 99 host=hostname sec=mechanism uid=0xFF user=username */ in cifs_get_spnego_key() 101 HOST_KEY_LEN + strlen(hostname) + in cifs_get_spnego_key() 117 /* start with version and hostname portion of UNC string */ in cifs_get_spnego_key() 120 hostname); in cifs_get_spnego_key()
|
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | dns_resolve.c | 63 char *hostname; member 94 kfree(new->hostname); in nfs_dns_ent_init() 95 new->hostname = kmemdup_nul(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init() 96 if (new->hostname) { in nfs_dns_ent_init() 110 kfree(item->hostname); in nfs_dns_ent_free_rcu() 127 item->hostname = NULL; in nfs_dns_ent_alloc() 137 return hash_str(key->hostname, NFS_DNS_HASHBITS); in nfs_dns_hash() 146 qword_add(bpp, blen, key->hostname); in nfs_dns_request() 157 if (!nfs_cache_upcall(cd, key->hostname)) in nfs_dns_upcall() [all...] |
H A D | nfs4super.c | 144 const char *hostname, in do_nfs4_mount() 176 len = strlen(hostname) + 5; in do_nfs4_mount() 183 /* Does hostname needs to be enclosed in brackets? */ in do_nfs4_mount() 184 if (strchr(hostname, ':')) in do_nfs4_mount() 185 param.size = snprintf(param.string, len, "[%s]:/", hostname); in do_nfs4_mount() 187 param.size = snprintf(param.string, len, "%s:/", hostname); in do_nfs4_mount() 227 fc, ctx->nfs_server.hostname, in nfs4_try_get_tree() 250 fc, ctx->nfs_server.hostname, in nfs4_get_referral_tree() 142 do_nfs4_mount(struct nfs_server *server, struct fs_context *fc, const char *hostname, const char *export_path) do_nfs4_mount() argument
|
H A D | nfs4namespace.c | 296 * terminating char and also a buffer big enough to hold the hostname in try_location() 306 kfree(ctx->nfs_server.hostname); in try_location() 307 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL); in try_location() 308 if (!ctx->nfs_server.hostname) in try_location() 342 memcpy(ctx->nfs_server.hostname, buf->data, buf->len); in try_location() 343 ctx->nfs_server.hostname[buf->len] = '\0'; in try_location() 495 char *hostname; in nfs4_try_replacing_one_location() local 510 hostname = kmemdup_nul(buf->data, buf->len, GFP_KERNEL); in nfs4_try_replacing_one_location() 511 if (hostname == NULL) in nfs4_try_replacing_one_location() 514 error = nfs4_update_server(server, hostname, sa in nfs4_try_replacing_one_location() [all...] |
H A D | fs_context.c | 719 kfree(ctx->mount_server.hostname); in nfs_fs_context_parse_param() 720 ctx->mount_server.hostname = param->string; in nfs_fs_context_parse_param() 793 * Split fc->source into "hostname:export_path". 795 * The leftmost colon demarks the split between the server's hostname 796 * and the export path. If the hostname starts with a left square 799 * Note: caller frees hostname and export path, even on error. 830 /* kill possible hostname list: not supported */ in nfs_parse_source() 839 kfree(ctx->nfs_server.hostname); in nfs_parse_source() 841 /* N.B. caller will free nfs_server.hostname in all cases */ in nfs_parse_source() 842 ctx->nfs_server.hostname in nfs_parse_source() 1080 struct compat_nfs_string hostname; global() member [all...] |
H A D | mount_clnt.c | 161 .servername = info->hostname, in nfs_mount() 171 (info->hostname ? info->hostname : "server"), in nfs_mount() 247 .servername = info->hostname, in nfs_umount() 271 (info->hostname ? info->hostname : "server"), info->dirpath); in nfs_umount()
|
H A D | nfs4client.c | 862 const char *hostname, in nfs4_set_client() 871 .hostname = hostname, in nfs4_set_client() 953 cl_init.hostname = buf; in nfs4_set_ds_client() 1117 ctx->nfs_server.hostname, in nfs4_init_server() 1206 ctx->nfs_server.hostname, in nfs4_create_referral_server() 1221 ctx->nfs_server.hostname, in nfs4_create_referral_server() 1282 * @hostname: new end-point's hostname 1293 int nfs4_update_server(struct nfs_server *server, const char *hostname, in nfs4_update_server() argument 861 nfs4_set_client(struct nfs_server *server, const char *hostname, const struct sockaddr *addr, const size_t addrlen, const char *ip_addr, int proto, const struct rpc_timeout *timeparms, u32 minorversion, unsigned int nconnect, struct net *net) nfs4_set_client() argument [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | dns_resolve.c | 62 char *hostname; member 93 kfree(new->hostname); in nfs_dns_ent_init() 94 new->hostname = kmemdup_nul(key->hostname, key->namelen, GFP_KERNEL); in nfs_dns_ent_init() 95 if (new->hostname) { in nfs_dns_ent_init() 109 kfree(item->hostname); in nfs_dns_ent_free_rcu() 126 item->hostname = NULL; in nfs_dns_ent_alloc() 136 return hash_str(key->hostname, NFS_DNS_HASHBITS); in nfs_dns_hash() 145 qword_add(bpp, blen, key->hostname); in nfs_dns_request() 156 if (!nfs_cache_upcall(cd, key->hostname)) in nfs_dns_upcall() [all...] |
H A D | nfs4super.c | 144 const char *hostname, in do_nfs4_mount() 176 len = strlen(hostname) + 5; in do_nfs4_mount() 183 /* Does hostname needs to be enclosed in brackets? */ in do_nfs4_mount() 184 if (strchr(hostname, ':')) in do_nfs4_mount() 185 param.size = snprintf(param.string, len, "[%s]:/", hostname); in do_nfs4_mount() 187 param.size = snprintf(param.string, len, "%s:/", hostname); in do_nfs4_mount() 227 fc, ctx->nfs_server.hostname, in nfs4_try_get_tree() 250 fc, ctx->nfs_server.hostname, in nfs4_get_referral_tree() 142 do_nfs4_mount(struct nfs_server *server, struct fs_context *fc, const char *hostname, const char *export_path) do_nfs4_mount() argument
|
H A D | nfs4namespace.c | 297 * terminating char and also a buffer big enough to hold the hostname in try_location() 307 kfree(ctx->nfs_server.hostname); in try_location() 308 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL); in try_location() 309 if (!ctx->nfs_server.hostname) in try_location() 343 memcpy(ctx->nfs_server.hostname, buf->data, buf->len); in try_location() 344 ctx->nfs_server.hostname[buf->len] = '\0'; in try_location() 500 char *hostname; in nfs4_try_replacing_one_location() local 515 hostname = kmemdup_nul(buf->data, buf->len, GFP_KERNEL); in nfs4_try_replacing_one_location() 516 if (hostname == NULL) in nfs4_try_replacing_one_location() 519 error = nfs4_update_server(server, hostname, sa in nfs4_try_replacing_one_location() [all...] |
H A D | fs_context.c | 839 kfree(ctx->mount_server.hostname); in nfs_fs_context_parse_param() 840 ctx->mount_server.hostname = param->string; in nfs_fs_context_parse_param() 943 * Split fc->source into "hostname:export_path". 945 * The leftmost colon demarks the split between the server's hostname 946 * and the export path. If the hostname starts with a left square 949 * Note: caller frees hostname and export path, even on error. 978 /* kill possible hostname list: not supported */ in nfs_parse_source() 987 kfree(ctx->nfs_server.hostname); in nfs_parse_source() 989 /* N.B. caller will free nfs_server.hostname in all cases */ in nfs_parse_source() 990 ctx->nfs_server.hostname in nfs_parse_source() 1232 struct compat_nfs_string hostname; global() member [all...] |
H A D | mount_clnt.c | 164 .servername = info->hostname, in nfs_mount() 174 (info->hostname ? info->hostname : "server"), in nfs_mount() 251 .servername = info->hostname, in nfs_umount() 275 (info->hostname ? info->hostname : "server"), info->dirpath); in nfs_umount()
|
/kernel/linux/linux-5.10/fs/lockd/ |
H A D | mon.c | 211 const char *hostname, const size_t len) in nsm_lookup_hostname() 217 memcmp(nsm->sm_name, hostname, len) == 0) in nsm_lookup_hostname() 274 const char *hostname, in nsm_create_handle() 279 if (!hostname) in nsm_create_handle() 296 memcpy(new->sm_name, hostname, hostname_len); in nsm_create_handle() 307 * @hostname: pointer to C string containing hostname to find 314 * @hostname cannot be found in the handle cache. Returns NULL if 319 const size_t salen, const char *hostname, in nsm_get_handle() 325 if (hostname in nsm_get_handle() 210 nsm_lookup_hostname(const struct list_head *nsm_handles, const char *hostname, const size_t len) nsm_lookup_hostname() argument 272 nsm_create_handle(const struct sockaddr *sap, const size_t salen, const char *hostname, const size_t hostname_len) nsm_create_handle() argument 317 nsm_get_handle(const struct net *net, const struct sockaddr *sap, const size_t salen, const char *hostname, const size_t hostname_len) nsm_get_handle() argument [all...] |
H A D | host.c | 59 const char *hostname; /* remote's hostname */ member 122 ni->hostname, ni->hostname_len); in nlm_alloc_host() 206 * @hostname: '\0'-terminated hostname of server 212 * [server address, transport protocol, NLM version, server hostname]. 220 const char *hostname, in nlmclnt_lookup_host() 231 .hostname = hostname, in nlmclnt_lookup_host() 232 .hostname_len = strlen(hostname), in nlmclnt_lookup_host() 216 nlmclnt_lookup_host(const struct sockaddr *sap, const size_t salen, const unsigned short protocol, const u32 version, const char *hostname, int noresvport, struct net *net, const struct cred *cred) nlmclnt_lookup_host() argument 328 nlmsvc_lookup_host(const struct svc_rqst *rqstp, const char *hostname, const size_t hostname_len) nlmsvc_lookup_host() argument [all...] |
/kernel/linux/linux-6.6/fs/lockd/ |
H A D | mon.c | 211 const char *hostname, const size_t len) in nsm_lookup_hostname() 217 memcmp(nsm->sm_name, hostname, len) == 0) in nsm_lookup_hostname() 274 const char *hostname, in nsm_create_handle() 279 if (!hostname) in nsm_create_handle() 296 memcpy(new->sm_name, hostname, hostname_len); in nsm_create_handle() 307 * @hostname: pointer to C string containing hostname to find 314 * @hostname cannot be found in the handle cache. Returns NULL if 319 const size_t salen, const char *hostname, in nsm_get_handle() 325 if (hostname in nsm_get_handle() 210 nsm_lookup_hostname(const struct list_head *nsm_handles, const char *hostname, const size_t len) nsm_lookup_hostname() argument 272 nsm_create_handle(const struct sockaddr *sap, const size_t salen, const char *hostname, const size_t hostname_len) nsm_create_handle() argument 317 nsm_get_handle(const struct net *net, const struct sockaddr *sap, const size_t salen, const char *hostname, const size_t hostname_len) nsm_get_handle() argument [all...] |
H A D | host.c | 59 const char *hostname; /* remote's hostname */ member 122 ni->hostname, ni->hostname_len); in nlm_alloc_host() 206 * @hostname: '\0'-terminated hostname of server 212 * [server address, transport protocol, NLM version, server hostname]. 220 const char *hostname, in nlmclnt_lookup_host() 231 .hostname = hostname, in nlmclnt_lookup_host() 232 .hostname_len = strlen(hostname), in nlmclnt_lookup_host() 216 nlmclnt_lookup_host(const struct sockaddr *sap, const size_t salen, const unsigned short protocol, const u32 version, const char *hostname, int noresvport, struct net *net, const struct cred *cred) nlmclnt_lookup_host() argument 328 nlmsvc_lookup_host(const struct svc_rqst *rqstp, const char *hostname, const size_t hostname_len) nlmsvc_lookup_host() argument [all...] |
/kernel/linux/linux-5.10/tools/usb/usbip/src/ |
H A D | usbip_network.c | 261 int usbip_net_tcp_connect(char *hostname, char *service) in usbip_net_tcp_connect() argument 272 ret = getaddrinfo(hostname, service, &hints, &res); in usbip_net_tcp_connect() 274 dbg("getaddrinfo: %s service %s: %s", hostname, service, in usbip_net_tcp_connect()
|
/kernel/linux/linux-6.6/tools/usb/usbip/src/ |
H A D | usbip_network.c | 261 int usbip_net_tcp_connect(char *hostname, char *service) in usbip_net_tcp_connect() argument 272 ret = getaddrinfo(hostname, service, &hints, &res); in usbip_net_tcp_connect() 274 dbg("getaddrinfo: %s service %s: %s", hostname, service, in usbip_net_tcp_connect()
|