From: Sylvain Rochet Date: Sun, 26 Apr 2015 18:40:53 +0000 (+0200) Subject: ppp: mppe: discard late packet in stateless mode X-Git-Tag: omap-for-v4.2/omap1-v2~58^2~5^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03654763148f9a3878b8b70c30d1ffce2fca3dff;p=pandora-kernel.git ppp: mppe: discard late packet in stateless mode When PPP is used over a link which does not guarantee packet ordering, we might get late MPPE packets. This is a problem because MPPE must be kept synchronized and the current implementation does not drop them and rekey 4095 times instead of 0, which is wrong. In order to prevent rekeying about a whole count space times (~ 4095 times), drop packets which are not within the forward 4096/2 window and increase sanity error counter. Signed-off-by: Sylvain Rochet Signed-off-by: David S. Miller --- Reading git-diff-tree failed