1*4882a593Smuzhiyun /* 2*4882a593Smuzhiyun * DNS Resolver upcall management for CIFS DFS and AFS 3*4882a593Smuzhiyun * Handles host name to IP address resolution and DNS query for AFSDB RR. 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Copyright (c) International Business Machines Corp., 2008 6*4882a593Smuzhiyun * Author(s): Steve French (sfrench@us.ibm.com) 7*4882a593Smuzhiyun * Wang Lei (wang840925@gmail.com) 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * This library is free software; you can redistribute it and/or modify 10*4882a593Smuzhiyun * it under the terms of the GNU Lesser General Public License as published 11*4882a593Smuzhiyun * by the Free Software Foundation; either version 2.1 of the License, or 12*4882a593Smuzhiyun * (at your option) any later version. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * This library is distributed in the hope that it will be useful, 15*4882a593Smuzhiyun * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*4882a593Smuzhiyun * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 17*4882a593Smuzhiyun * the GNU Lesser General Public License for more details. 18*4882a593Smuzhiyun * 19*4882a593Smuzhiyun * You should have received a copy of the GNU Lesser General Public License 20*4882a593Smuzhiyun * along with this library; if not, write to the Free Software 21*4882a593Smuzhiyun * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22*4882a593Smuzhiyun */ 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun #ifndef _LINUX_DNS_RESOLVER_H 25*4882a593Smuzhiyun #define _LINUX_DNS_RESOLVER_H 26*4882a593Smuzhiyun 27*4882a593Smuzhiyun #include <uapi/linux/dns_resolver.h> 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun struct net; 30*4882a593Smuzhiyun extern int dns_query(struct net *net, const char *type, const char *name, size_t namelen, 31*4882a593Smuzhiyun const char *options, char **_result, time64_t *_expiry, 32*4882a593Smuzhiyun bool invalidate); 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun #endif /* _LINUX_DNS_RESOLVER_H */ 35