Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  *   DNS Resolver upcall management for CIFS DFS and AFS
0003  *   Handles host name to IP address resolution and DNS query for AFSDB RR.
0004  *
0005  *   Copyright (c) International Business Machines  Corp., 2008
0006  *   Author(s): Steve French (sfrench@us.ibm.com)
0007  *              Wang Lei (wang840925@gmail.com)
0008  *
0009  *   This library is free software; you can redistribute it and/or modify
0010  *   it under the terms of the GNU Lesser General Public License as published
0011  *   by the Free Software Foundation; either version 2.1 of the License, or
0012  *   (at your option) any later version.
0013  *
0014  *   This library is distributed in the hope that it will be useful,
0015  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
0016  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
0017  *   the GNU Lesser General Public License for more details.
0018  *
0019  *   You should have received a copy of the GNU Lesser General Public License
0020  *   along with this library; if not, write to the Free Software
0021  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0022  */
0023 
0024 #ifndef _LINUX_DNS_RESOLVER_H
0025 #define _LINUX_DNS_RESOLVER_H
0026 
0027 #include <uapi/linux/dns_resolver.h>
0028 
0029 struct net;
0030 extern int dns_query(struct net *net, const char *type, const char *name, size_t namelen,
0031              const char *options, char **_result, time64_t *_expiry,
0032              bool invalidate);
0033 
0034 #endif /* _LINUX_DNS_RESOLVER_H */