]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_ct_tcp: don't scale the size of the window up twice
authorChangli Gao <xiaosuo@gmail.com>
Sun, 1 Apr 2012 17:25:06 +0000 (17:25 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 9 Apr 2012 14:29:30 +0000 (16:29 +0200)
commitee2fc803461a798f550ac303f4ae7556389ae85e
tree3c473f3d7a8fad1ebf583f2a32ecd748e8d689e8
parent6ceef9cfb5b1e38bb17f5e015c5e0d4ee672c219
netfilter: nf_ct_tcp: don't scale the size of the window up twice

For a picked up connection, the window win is scaled twice: one is by the
initialization code, and the other is by the sender updating code.

I use the temporary variable swin instead of modifying the variable win.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_tcp.c