From a7428f1858b025b1d2c570c0c37c93eebb5371ea Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Mon, 27 Aug 2001 10:42:21 +0000 Subject: [PATCH] Send a reset request for every packet received when our encryption dictionaries are out of sync. This avoids the complications that happen when our original reset request gets lost in transit (quite likely in hind sight, given a lossy link) when we end up ignoring the peer for the next (up to) 256 packets. Submitted by: Nick Sayer --- usr.sbin/ppp/mppe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/ppp/mppe.c b/usr.sbin/ppp/mppe.c index f079660c2fa4..b2acc475c91e 100644 --- a/usr.sbin/ppp/mppe.c +++ b/usr.sbin/ppp/mppe.c @@ -296,6 +296,8 @@ MPPEInput(void *v, struct ccp *ccp, u_short *proto, struct mbuf *mp) * The spec says that we shouldn't be though.... */ log_Printf(LogDEBUG, "MPPE: Not flushed - discarded\n"); + fsm_Output(&ccp->fsm, CODE_RESETREQ, ccp->fsm.reqid++, NULL, 0, + MB_CCPOUT); m_freem(mp); return NULL; }