11a4240f4SWang Lei /* 21a4240f4SWang Lei * DNS Resolver upcall management for CIFS DFS and AFS 31a4240f4SWang Lei * Handles host name to IP address resolution and DNS query for AFSDB RR. 41a4240f4SWang Lei * 51a4240f4SWang Lei * Copyright (c) International Business Machines Corp., 2008 61a4240f4SWang Lei * Author(s): Steve French ([email protected]) 71a4240f4SWang Lei * Wang Lei ([email protected]) 81a4240f4SWang Lei * 91a4240f4SWang Lei * This library is free software; you can redistribute it and/or modify 101a4240f4SWang Lei * it under the terms of the GNU Lesser General Public License as published 111a4240f4SWang Lei * by the Free Software Foundation; either version 2.1 of the License, or 121a4240f4SWang Lei * (at your option) any later version. 131a4240f4SWang Lei * 141a4240f4SWang Lei * This library is distributed in the hope that it will be useful, 151a4240f4SWang Lei * but WITHOUT ANY WARRANTY; without even the implied warranty of 161a4240f4SWang Lei * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See 171a4240f4SWang Lei * the GNU Lesser General Public License for more details. 181a4240f4SWang Lei * 191a4240f4SWang Lei * You should have received a copy of the GNU Lesser General Public License 201a4240f4SWang Lei * along with this library; if not, write to the Free Software 211a4240f4SWang Lei * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 221a4240f4SWang Lei */ 231a4240f4SWang Lei 241a4240f4SWang Lei #ifndef _LINUX_DNS_RESOLVER_H 251a4240f4SWang Lei #define _LINUX_DNS_RESOLVER_H 261a4240f4SWang Lei 27bbb4c432SDavid Howells #include <uapi/linux/dns_resolver.h> 281a4240f4SWang Lei 29*a58946c1SDavid Howells struct net; 30*a58946c1SDavid Howells extern int dns_query(struct net *net, const char *type, const char *name, size_t namelen, 31d0660f0bSDavid Howells const char *options, char **_result, time64_t *_expiry, 32d0660f0bSDavid Howells bool invalidate); 331a4240f4SWang Lei 341a4240f4SWang Lei #endif /* _LINUX_DNS_RESOLVER_H */ 35