1 /* This is a module which is used to mark packets for tracing.
3 #include <linux/module.h>
4 #include <linux/skbuff.h>
6 #include <linux/netfilter/x_tables.h>
9 MODULE_ALIAS("ipt_TRACE");
10 MODULE_ALIAS("ip6t_TRACE");
13 target(struct sk_buff
*skb
,
14 const struct net_device
*in
,
15 const struct net_device
*out
,
17 const struct xt_target
*target
,
24 static struct xt_target xt_trace_target
[] __read_mostly
= {
41 static int __init
xt_trace_init(void)
43 return xt_register_targets(xt_trace_target
,
44 ARRAY_SIZE(xt_trace_target
));
47 static void __exit
xt_trace_fini(void)
49 xt_unregister_targets(xt_trace_target
, ARRAY_SIZE(xt_trace_target
));
52 module_init(xt_trace_init
);
53 module_exit(xt_trace_fini
);