Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[linux-btrfs-devel.git] / fs / nfs / dns_resolve.h
blob199bb5543a91ad3dfc1e03e2f85894f78661e4cb
1 /*
2 * Resolve DNS hostnames into valid ip addresses
3 */
4 #ifndef __LINUX_FS_NFS_DNS_RESOLVE_H
5 #define __LINUX_FS_NFS_DNS_RESOLVE_H
7 #define NFS_DNS_HOSTNAME_MAXLEN (128)
10 #ifdef CONFIG_NFS_USE_KERNEL_DNS
11 static inline int nfs_dns_resolver_init(void)
13 return 0;
16 static inline void nfs_dns_resolver_destroy(void)
18 #else
19 extern int nfs_dns_resolver_init(void);
20 extern void nfs_dns_resolver_destroy(void);
21 #endif
23 extern ssize_t nfs_dns_resolve_name(char *name, size_t namelen,
24 struct sockaddr *sa, size_t salen);
26 #endif