[PATCH 2/2] ppp: mppe: discard late packet in stateless mode

2015-04-26 Thread Sylvain Rochet
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 --- drivers/net/ppp/ppp_mppe.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/ppp/ppp_mppe.c b/drivers/net

[PATCH 0/2] ppp: mppe: fixes MPPE desync on links which don't guarantee packet ordering

2015-04-26 Thread Sylvain Rochet
missed packet 1561 and we already rekeyed 2 times for 1562 we previously received, we can't recover the decryption key we need for 1561, we should drop it instead of rekeying 4095 times. This patch series drop any packet with are not within the 4096/2 forward window. Sylvain Rochet (2): ppp:

[PATCH 1/2] ppp: mppe: sanity error path rework

2015-04-26 Thread Sylvain Rochet
We are going to need sanity error path a little further, rework to be able to use the sanity error path anywhere in decompressor. Signed-off-by: Sylvain Rochet --- drivers/net/ppp/ppp_mppe.c | 29 + 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a