]> git.ipfire.org Git - thirdparty/iptables.git/commit
extensions: libxt_tcpmss: Detect invalid ranges
authorPhil Sutter <phil@nwl.cc>
Mon, 9 Oct 2017 13:47:39 +0000 (15:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 17 Oct 2017 12:12:47 +0000 (14:12 +0200)
commitdbbab0aa328f136502373a1031e64eb53fa113e5
tree557f0aaee2a2d7059f208b29d8b90860f78f08a2
parent0e9582814a201a29be42d096fe36723fa16078da
extensions: libxt_tcpmss: Detect invalid ranges

Previously, an MSS range of e.g. 65535:1000 was silently accepted but
would then never match a packet since the kernel checks whether the MSS
value is greater than or equal to the first *and* less than or equal to
the second value.

Detect this as a parameter problem and update the man page accordingly.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libxt_tcpmss.c
extensions/libxt_tcpmss.man