mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
Add SPDX-License-Identifier lines to several source files under the network sub-directory. Work on files in the core, dns_resolver, ipv4, ipv6 and netfilter sub-dirs. Remove boilerplate and license reference text to avoid ambiguity. Rusty Russell has expressed that his contributions were intended to be GPL-2.0-or-later. Signed-off-by: Tim Bird <tim.bird@sony.com> Link: https://patch.msgid.link/20260305004724.87469-1-tim.bird@sony.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
40 lines
814 B
C
40 lines
814 B
C
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (c) 2010 Wang Lei
|
|
* Author(s): Wang Lei (wang840925@gmail.com). All Rights Reserved.
|
|
*
|
|
* Internal DNS Rsolver stuff
|
|
*/
|
|
|
|
#include <linux/compiler.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/sched.h>
|
|
|
|
/*
|
|
* Layout of key payload words.
|
|
*/
|
|
enum {
|
|
dns_key_data,
|
|
dns_key_error,
|
|
};
|
|
|
|
/*
|
|
* dns_key.c
|
|
*/
|
|
extern const struct cred *dns_resolver_cache;
|
|
|
|
/*
|
|
* debug tracing
|
|
*/
|
|
extern unsigned int dns_resolver_debug;
|
|
|
|
#define kdebug(FMT, ...) \
|
|
do { \
|
|
if (unlikely(dns_resolver_debug)) \
|
|
printk(KERN_DEBUG "[%-6.6s] "FMT"\n", \
|
|
current->comm, ##__VA_ARGS__); \
|
|
} while (0)
|
|
|
|
#define kenter(FMT, ...) kdebug("==> %s("FMT")", __func__, ##__VA_ARGS__)
|
|
#define kleave(FMT, ...) kdebug("<== %s()"FMT"", __func__, ##__VA_ARGS__)
|