]> bbs.cooldavid.org Git - net-next-2.6.git/blame - fs/nfs/dns_resolve.h
xps: Transmit Packet Steering
[net-next-2.6.git] / fs / nfs / dns_resolve.h
CommitLineData
e571cbf1
TM
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
6
7#define NFS_DNS_HOSTNAME_MAXLEN (128)
8
c2e8139c
BS
9
10#ifdef CONFIG_NFS_USE_KERNEL_DNS
11static inline int nfs_dns_resolver_init(void)
12{
13 return 0;
14}
15
16static inline void nfs_dns_resolver_destroy(void)
17{}
18#else
e571cbf1
TM
19extern int nfs_dns_resolver_init(void);
20extern void nfs_dns_resolver_destroy(void);
c2e8139c
BS
21#endif
22
e571cbf1
TM
23extern ssize_t nfs_dns_resolve_name(char *name, size_t namelen,
24 struct sockaddr *sa, size_t salen);
25
26#endif