netfilter: synproxy: correct wscale option passing
authorMartin Topholm <mph@one.com>
Thu, 14 Nov 2013 14:35:31 +0000 (15:35 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 18 Nov 2013 11:53:38 +0000 (12:53 +0100)
commitc1898c4c295b735c05af4c09664993fd8f257c2b
tree869130e70b5c9b01734bbb3211a4fdb45c8dde9a
parenta6441b7a39f18acb68c83cd738f1310881aa8a0b
netfilter: synproxy: correct wscale option passing

Timestamp are used to store additional syncookie parameters such as sack,
ecn, and wscale. The wscale value we need to encode is the client's
wscale, since we can't recover that later in the session. Next overwrite
the wscale option so the later synproxy_send_client_synack will send
the backend's wscale to the client.

Signed-off-by: Martin Topholm <mph@one.com>
Reviewed-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_synproxy_core.c