aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_nat.h
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/net/netfilter/nf_nat.h
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/net/netfilter/nf_nat.h')
-rw-r--r--include/net/netfilter/nf_nat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netfilter/nf_nat.h b/include/net/netfilter/nf_nat.h
index ad14a799fd2e..e2441413675c 100644
--- a/include/net/netfilter/nf_nat.h
+++ b/include/net/netfilter/nf_nat.h
@@ -19,7 +19,7 @@ struct nf_nat_seq {
u_int32_t correction_pos;
/* sequence number offset before and after last modification */
- int16_t offset_before, offset_after;
+ int32_t offset_before, offset_after;
};
#include <linux/list.h>