aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2013-07-28 22:54:10 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-07-31 19:54:51 +0200
commit2d89c68ac78ae432038ef23371d2fa949d725d43 (patch)
tree9eb19fc7550976ff633849e95c752a34f19df4f2 /include/linux
parentnetfilter: nf_nat: fix locking in nf_nat_seq_adjust() (diff)
downloadlinux-dev-2d89c68ac78ae432038ef23371d2fa949d725d43.tar.xz
linux-dev-2d89c68ac78ae432038ef23371d2fa949d725d43.zip
netfilter: nf_nat: change sequence number adjustments to 32 bits
Using 16 bits is too small, when many adjustments happen the offsets might overflow and break the connection. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netfilter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
index f4bbf2cd22d8..655d5d198d49 100644
--- a/include/linux/netfilter.h
+++ b/include/linux/netfilter.h
@@ -330,7 +330,7 @@ extern struct nfq_ct_hook __rcu *nfq_ct_hook;
struct nfq_ct_nat_hook {
void (*seq_adjust)(struct sk_buff *skb, struct nf_conn *ct,
- u32 ctinfo, int off);
+ u32 ctinfo, s32 off);
};
extern struct nfq_ct_nat_hook __rcu *nfq_ct_nat_hook;
#else