11 #include <linux/kernel.h>
12 #include <linux/module.h>
17 #include <linux/udp.h>
18 #include <linux/netfilter.h>
28 static char *ts_algo =
"kmp";
44 unsigned int matchoff,
45 unsigned int matchlen,
85 static int amanda_help(
struct sk_buff *skb,
94 char pbuf[
sizeof(
"65535")], *
tmp;
106 nf_ct_refresh(ct, skb, master_timeout *
HZ);
110 if (dataoff >= skb->len) {
136 len =
min_t(
unsigned int,
sizeof(pbuf) - 1, stop - off);
143 if (port == 0 || len > 5)
154 &tuple->
src.u3, &tuple->
dst.u3,
159 ret = nf_nat_amanda(skb, ctinfo, protoff,
160 off - dataoff, len, exp);
161 else if (nf_ct_expect_related(exp) != 0)
183 .expect_policy = &amanda_exp_policy,
192 .expect_policy = &amanda_exp_policy,
196 static void __exit nf_conntrack_amanda_fini(
void)
206 static int __init nf_conntrack_amanda_init(
void)
215 ret = PTR_ERR(
search[i].ts);