mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
09c434b8a0
Add SPDX license identifiers to all files which: - Have no license information of any form - Have MODULE_LICENCE("GPL*") inside which was used in the initial scan/conversion to ignore the file These files fall under the project license, GPL v2 only. The resulting SPDX license identifier is: GPL-2.0-only Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
46 lines
1.1 KiB
C
46 lines
1.1 KiB
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Implements a dummy match to allow attaching comments to rules
|
|
*
|
|
* 2003-05-13 Brad Fisher (brad@info-link.net)
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/skbuff.h>
|
|
#include <linux/netfilter/x_tables.h>
|
|
#include <linux/netfilter/xt_comment.h>
|
|
|
|
MODULE_AUTHOR("Brad Fisher <brad@info-link.net>");
|
|
MODULE_DESCRIPTION("Xtables: No-op match which can be tagged with a comment");
|
|
MODULE_LICENSE("GPL");
|
|
MODULE_ALIAS("ipt_comment");
|
|
MODULE_ALIAS("ip6t_comment");
|
|
|
|
static bool
|
|
comment_mt(const struct sk_buff *skb, struct xt_action_param *par)
|
|
{
|
|
/* We always match */
|
|
return true;
|
|
}
|
|
|
|
static struct xt_match comment_mt_reg __read_mostly = {
|
|
.name = "comment",
|
|
.revision = 0,
|
|
.family = NFPROTO_UNSPEC,
|
|
.match = comment_mt,
|
|
.matchsize = sizeof(struct xt_comment_info),
|
|
.me = THIS_MODULE,
|
|
};
|
|
|
|
static int __init comment_mt_init(void)
|
|
{
|
|
return xt_register_match(&comment_mt_reg);
|
|
}
|
|
|
|
static void __exit comment_mt_exit(void)
|
|
{
|
|
xt_unregister_match(&comment_mt_reg);
|
|
}
|
|
|
|
module_init(comment_mt_init);
|
|
module_exit(comment_mt_exit);
|