/*1* Copyright (c) 2010 Wang Lei2* Author(s): Wang Lei ([email protected]). All Rights Reserved.3*4* Internal DNS Rsolver stuff5*6* This library is free software; you can redistribute it and/or modify7* it under the terms of the GNU Lesser General Public License as published8* by the Free Software Foundation; either version 2.1 of the License, or9* (at your option) any later version.10*11* This library is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See14* the GNU Lesser General Public License for more details.15*16* You should have received a copy of the GNU Lesser General Public License17* along with this library; if not, write to the Free Software18* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA19*/2021#include <linux/compiler.h>22#include <linux/kernel.h>23#include <linux/sched.h>2425/*26* dns_key.c27*/28extern const struct cred *dns_resolver_cache;2930/*31* debug tracing32*/33extern unsigned dns_resolver_debug;3435#define kdebug(FMT, ...) \36do { \37if (unlikely(dns_resolver_debug)) \38printk(KERN_DEBUG "[%-6.6s] "FMT"\n", \39current->comm, ##__VA_ARGS__); \40} while (0)4142#define kenter(FMT, ...) kdebug("==> %s("FMT")", __func__, ##__VA_ARGS__)43#define kleave(FMT, ...) kdebug("<== %s()"FMT"", __func__, ##__VA_ARGS__)444546