Blame view

fs/nfs/dns_resolve.h 527 Bytes
e571cbf1a   Trond Myklebust   NFS: Add a dns re...
1
2
3
4
5
6
7
  /*
   * Resolve DNS hostnames into valid ip addresses
   */
  #ifndef __LINUX_FS_NFS_DNS_RESOLVE_H
  #define __LINUX_FS_NFS_DNS_RESOLVE_H
  
  #define NFS_DNS_HOSTNAME_MAXLEN	(128)
c2e8139c9   Bryan Schumaker   NFS: Use kernel D...
8
9
10
11
12
13
14
15
16
17
  
  #ifdef CONFIG_NFS_USE_KERNEL_DNS
  static inline int nfs_dns_resolver_init(void)
  {
  	return 0;
  }
  
  static inline void nfs_dns_resolver_destroy(void)
  {}
  #else
e571cbf1a   Trond Myklebust   NFS: Add a dns re...
18
19
  extern int nfs_dns_resolver_init(void);
  extern void nfs_dns_resolver_destroy(void);
c2e8139c9   Bryan Schumaker   NFS: Use kernel D...
20
  #endif
e571cbf1a   Trond Myklebust   NFS: Add a dns re...
21
22
23
24
  extern ssize_t nfs_dns_resolve_name(char *name, size_t namelen,
  		struct sockaddr *sa, size_t salen);
  
  #endif