]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: tcp: Use TCP_MAX_WSCALE instead of literal 14
authorGao Feng <fgao@ikuai8.com>
Wed, 19 Apr 2017 01:23:42 +0000 (09:23 +0800)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 19 Apr 2017 15:55:17 +0000 (17:55 +0200)
commit228d8e85075af18e31bd0877981fea92a111070b
tree2a67950d7a07a8ff563f500af413d017c0e9c470
parent374cebe6ddb95bb1e8628e2e15577419edc2a194
netfilter: tcp: Use TCP_MAX_WSCALE instead of literal 14

The window scale may be enlarged from 14 to 15 according to the itef
draft https://tools.ietf.org/html/draft-nishida-tcpm-maxwin-03.

Use the macro TCP_MAX_WSCALE to support it easily with TCP stack in
the future.

Signed-off-by: Gao Feng <fgao@ikuai8.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nf_conntrack_proto_tcp.c
net/netfilter/nf_synproxy_core.c