Searched refs:hostname (Results 1 - 25 of 53) sorted by relevance

123

/linux-master/fs/smb/client/
H A Ddns_resolve.c10 * Contains the CIFS DFS upcall routines used for hostname to
34 const char *hostname, *sep; local
49 hostname = unc + 2;
52 sep = memchr(hostname, '/', len);
54 len = sep - hostname;
59 /* Try to interpret hostname as an IPv4 or IPv6 address */
60 rc = cifs_convert_address(ip_addr, hostname, len);
63 hostname);
68 rc = dns_query(current->nsproxy->net_ns, NULL, hostname, len,
72 __func__, len, len, hostname);
[all...]
H A Dcifs_debug.h87 __FILE__, server->hostname, \
91 server->hostname, ##__VA_ARGS__); \
94 server->hostname, ##__VA_ARGS__); \
147 server->hostname, ##__VA_ARGS__); \
H A Dtrace.h980 TP_PROTO(char *hostname,
983 TP_ARGS(hostname, conn_id, dst_addr),
985 __string(hostname, hostname)
995 __assign_str(hostname, hostname);
999 __get_str(hostname),
1005 TP_PROTO(char *hostname, \
1008 TP_ARGS(hostname, conn_id, addr))
1015 TP_PROTO(char *hostname, __u6
[all...]
H A Dcifs_spnego.c95 const char *hostname = server->hostname; local
99 host=hostname sec=mechanism uid=0xFF user=username */
101 HOST_KEY_LEN + strlen(hostname) +
117 /* start with version and hostname portion of UNC string */
120 hostname);
H A Ddfs.c266 * and therefore failing to upcall to resolve UNC hostname under @ctx->source.
382 if (dfs_host_len != strlen(server->hostname) ||
383 strncasecmp(dfs_host, server->hostname, dfs_host_len)) {
385 (int)dfs_host_len, dfs_host, server->hostname);
416 scnprintf(tree, MAX_TREE_SIZE, "\\\\%s\\IPC$", server->hostname);
592 scnprintf(tree, MAX_TREE_SIZE, "\\\\%s\\IPC$", server->hostname);
H A Dconnect.c68 * Resolve hostname and set ip addr in tcp ses. Useful for hostnames that may
80 if (!server->hostname)
83 /* if server hostname isn't populated, there's nothing to do here */
84 if (server->hostname[0] == '\0')
87 len = strlen(server->hostname) + 3;
94 scnprintf(unc, len, "\\\\%s", server->hostname);
105 __func__, server->hostname, rc);
368 server->hostname);
405 /* resolve the hostname again to make sure that IP address is up-to-date */
444 char *hostname; local
[all...]
/linux-master/include/uapi/linux/
H A Dnfs4_mount.h46 struct nfs_string hostname; /* 1 */ member in struct:nfs4_mount_data
H A Dnfs_mount.h41 char hostname[NFS_MAXNAMLEN + 1]; /* 1 */ member in struct:nfs_mount_data
/linux-master/fs/nfs/
H A Ddns_resolve.c62 char *hostname; member in struct:nfs_dns_ent
93 kfree(new->hostname);
94 new->hostname = kmemdup_nul(key->hostname, key->namelen, GFP_KERNEL);
95 if (new->hostname) {
109 kfree(item->hostname);
126 item->hostname = NULL;
136 return hash_str(key->hostname, NFS_DNS_HASHBITS);
145 qword_add(bpp, blen, key->hostname);
156 if (!nfs_cache_upcall(cd, key->hostname))
[all...]
H A Dnfs4super.c144 const char *hostname,
200 len = strlen(hostname) + 5;
207 /* Does hostname needs to be enclosed in brackets? */
208 if (strchr(hostname, ':'))
209 param.size = snprintf(param.string, len, "[%s]:/", hostname);
211 param.size = snprintf(param.string, len, "%s:/", hostname);
251 fc, ctx->nfs_server.hostname,
274 fc, ctx->nfs_server.hostname,
142 do_nfs4_mount(struct nfs_server *server, struct fs_context *fc, const char *hostname, const char *export_path) argument
H A Dnfs4namespace.c297 * terminating char and also a buffer big enough to hold the hostname
307 kfree(ctx->nfs_server.hostname);
308 ctx->nfs_server.hostname = kmalloc(len + 1, GFP_KERNEL);
309 if (!ctx->nfs_server.hostname)
343 memcpy(ctx->nfs_server.hostname, buf->data, buf->len);
344 ctx->nfs_server.hostname[buf->len] = '\0';
500 char *hostname; local
515 hostname = kmemdup_nul(buf->data, buf->len, GFP_KERNEL);
516 if (hostname == NULL)
519 error = nfs4_update_server(server, hostname, sa
[all...]
H A Dmount_clnt.c164 .servername = info->hostname,
174 (info->hostname ? info->hostname : "server"),
251 .servername = info->hostname,
275 (info->hostname ? info->hostname : "server"), info->dirpath);
H A Dfs_context.c840 kfree(ctx->mount_server.hostname);
841 ctx->mount_server.hostname = param->string;
944 * Split fc->source into "hostname:export_path".
946 * The leftmost colon demarks the split between the server's hostname
947 * and the export path. If the hostname starts with a left square
950 * Note: caller frees hostname and export path, even on error.
979 /* kill possible hostname list: not supported */
988 kfree(ctx->nfs_server.hostname);
990 /* N.B. caller will free nfs_server.hostname in all cases */
991 ctx->nfs_server.hostname
1233 struct compat_nfs_string hostname; member in struct:compat_nfs4_mount_data_v1
[all...]
H A Dnfs3client.c108 /* fake a hostname because lockd wants it */
111 cl_init.hostname = buf;
H A Dnfs4client.c897 const char *hostname,
908 .hostname = hostname,
1001 cl_init.hostname = buf;
1174 ctx->nfs_server.hostname,
1265 ctx->nfs_server.hostname,
1285 ctx->nfs_server.hostname,
1324 * @hostname: new end-point's hostname
1335 int nfs4_update_server(struct nfs_server *server, const char *hostname, argument
896 nfs4_set_client(struct nfs_server *server, const char *hostname, const struct sockaddr_storage *addr, const size_t addrlen, const char *ip_addr, int proto, const struct rpc_timeout *timeparms, u32 minorversion, unsigned int nconnect, unsigned int max_connect, struct net *net, struct xprtsec_parms *xprtsec) argument
[all...]
H A Dinternal.h71 const char *hostname; /* Hostname of the server */ member in struct:nfs_client_initdata
122 char *hostname; member in struct:nfs_fs_context::__anon652
134 char *hostname; member in struct:nfs_fs_context::__anon654
189 char *hostname; member in struct:nfs_mount_request
229 extern int nfs4_update_server(struct nfs_server *server, const char *hostname,
/linux-master/fs/lockd/
H A Dmon.c211 const char *hostname, const size_t len)
217 memcmp(nsm->sm_name, hostname, len) == 0)
274 const char *hostname,
279 if (!hostname)
296 memcpy(new->sm_name, hostname, hostname_len);
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,
325 if (hostname
210 nsm_lookup_hostname(const struct list_head *nsm_handles, const char *hostname, const size_t len) argument
272 nsm_create_handle(const struct sockaddr *sap, const size_t salen, const char *hostname, const size_t hostname_len) 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) argument
[all...]
H A Dhost.c59 const char *hostname; /* remote's hostname */ member in struct:nlm_lookup_host_info
122 ni->hostname, ni->hostname_len);
206 * @hostname: '\0'-terminated hostname of server
212 * [server address, transport protocol, NLM version, server hostname].
220 const char *hostname,
231 .hostname = hostname,
232 .hostname_len = strlen(hostname),
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) argument
328 nlmsvc_lookup_host(const struct svc_rqst *rqstp, const char *hostname, const size_t hostname_len) argument
[all...]
/linux-master/include/linux/lockd/
H A Dbind.h43 const char *hostname; member in struct:nlmclnt_initdata
H A Dlockd.h50 char *h_name; /* remote hostname */
235 const char *hostname,
241 const char *hostname,
261 const char *hostname,
/linux-master/tools/usb/usbip/src/
H A Dusbip_network.c261 int usbip_net_tcp_connect(char *hostname, char *service) argument
272 ret = getaddrinfo(hostname, service, &hints, &res);
274 dbg("getaddrinfo: %s service %s: %s", hostname, service,
H A Dusbip_network.h176 int usbip_net_tcp_connect(char *hostname, char *port);
/linux-master/scripts/package/
H A Dmkdebian138 buildhost=${KBUILD_BUILD_HOST-$(hostname -f 2>/dev/null || hostname)}
/linux-master/tools/perf/
H A Dperf-archive.sh108 HOSTNAME=$(hostname)
/linux-master/tools/perf/util/
H A Denv.h62 char *hostname; member in struct:perf_env

Completed in 342 milliseconds

123