cregit-Linux how code gets into the kernel

Release 4.11 net/netfilter/xt_comment.c

Directory: net/netfilter
/*
 * 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; }

Contributors

PersonTokensPropCommitsCommitProp
Patrick McHardy1676.19%120.00%
Jan Engelhardt523.81%480.00%
Total21100.00%5100.00%

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); }

Contributors

PersonTokensPropCommitsCommitProp
Patrick McHardy1168.75%240.00%
Jan Engelhardt425.00%240.00%
Harald Welte16.25%120.00%
Total16100.00%5100.00%


static void __exit comment_mt_exit(void) { xt_unregister_match(&comment_mt_reg); }

Contributors

PersonTokensPropCommitsCommitProp
Patrick McHardy960.00%240.00%
Jan Engelhardt426.67%240.00%
Harald Welte213.33%120.00%
Total15100.00%5100.00%

module_init(comment_mt_init); module_exit(comment_mt_exit);

Overall Contributors

PersonTokensPropCommitsCommitProp
Patrick McHardy9264.79%436.36%
Harald Welte2920.42%19.09%
Jan Engelhardt2114.79%654.55%
Total142100.00%11100.00%
Directory: net/netfilter
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.