24 #include <linux/module.h>
28 #include <linux/netfilter/x_tables.h>
47 ct = nf_ct_get(skb, &ctinfo);
54 if (ct->mark != newmark) {
60 newmark = (ct->mark & ~info->
ctmask) ^
62 if (ct->mark != newmark) {
83 pr_info(
"cannot load conntrack support for proto=%u\n",
100 ct = nf_ct_get(skb, &ctinfo);
113 pr_info(
"cannot load conntrack support for proto=%u\n",
127 .checkentry = connmark_tg_check,
128 .target = connmark_tg,
130 .
destroy = connmark_tg_destroy,
134 static struct xt_match connmark_mt_reg __read_mostly = {
138 .checkentry = connmark_mt_check,
139 .match = connmark_mt,
141 .
destroy = connmark_mt_destroy,
145 static int __init connmark_mt_init(
void)
160 static void __exit connmark_mt_exit(
void)