Release 4.11 net/netfilter/xt_TRACE.c
/* This is a module which is used to mark packets for tracing.
*/
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/netfilter/x_tables.h>
#include <net/netfilter/nf_log.h>
MODULE_DESCRIPTION("Xtables: packet flow tracing");
MODULE_LICENSE("GPL");
MODULE_ALIAS("ipt_TRACE");
MODULE_ALIAS("ip6t_TRACE");
static int trace_tg_check(const struct xt_tgchk_param *par)
{
return nf_logger_find_get(par->family, NF_LOG_TYPE_LOG);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Liping Zhang | 22 | 100.00% | 1 | 100.00% |
Total | 22 | 100.00% | 1 | 100.00% |
static void trace_tg_destroy(const struct xt_tgdtor_param *par)
{
nf_logger_put(par->family, NF_LOG_TYPE_LOG);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Liping Zhang | 21 | 100.00% | 1 | 100.00% |
Total | 21 | 100.00% | 1 | 100.00% |
static unsigned int
trace_tg(struct sk_buff *skb, const struct xt_action_param *par)
{
skb->nf_trace = 1;
return XT_CONTINUE;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jozsef Kadlecsik | 22 | 81.48% | 1 | 20.00% |
Jan Engelhardt | 3 | 11.11% | 3 | 60.00% |
Herbert Xu | 2 | 7.41% | 1 | 20.00% |
Total | 27 | 100.00% | 5 | 100.00% |
static struct xt_target trace_tg_reg __read_mostly = {
.name = "TRACE",
.revision = 0,
.family = NFPROTO_UNSPEC,
.table = "raw",
.target = trace_tg,
.checkentry = trace_tg_check,
.destroy = trace_tg_destroy,
.me = THIS_MODULE,
};
static int __init trace_tg_init(void)
{
return xt_register_target(&trace_tg_reg);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jozsef Kadlecsik | 12 | 75.00% | 1 | 33.33% |
Jan Engelhardt | 4 | 25.00% | 2 | 66.67% |
Total | 16 | 100.00% | 3 | 100.00% |
static void __exit trace_tg_exit(void)
{
xt_unregister_target(&trace_tg_reg);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jozsef Kadlecsik | 11 | 73.33% | 1 | 33.33% |
Jan Engelhardt | 4 | 26.67% | 2 | 66.67% |
Total | 15 | 100.00% | 3 | 100.00% |
module_init(trace_tg_init);
module_exit(trace_tg_exit);
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jozsef Kadlecsik | 109 | 56.77% | 1 | 11.11% |
Liping Zhang | 56 | 29.17% | 1 | 11.11% |
Jan Engelhardt | 24 | 12.50% | 5 | 55.56% |
Herbert Xu | 2 | 1.04% | 1 | 11.11% |
Patrick McHardy | 1 | 0.52% | 1 | 11.11% |
Total | 192 | 100.00% | 9 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.