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