2 * Resolve DNS hostnames into valid ip addresses
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)
16 static inline void nfs_dns_resolver_destroy(void)
19 static inline int nfs_dns_resolver_cache_init(struct net *net)
24 static inline void nfs_dns_resolver_cache_destroy(struct net *net)
27 extern int nfs_dns_resolver_init(void);
28 extern void nfs_dns_resolver_destroy(void);
29 extern int nfs_dns_resolver_cache_init(struct net *net);
30 extern void nfs_dns_resolver_cache_destroy(struct net *net);
33 extern ssize_t nfs_dns_resolve_name(struct net *net, char *name,
34 size_t namelen, struct sockaddr *sa, size_t salen);