From owner-freebsd-bugs@FreeBSD.ORG Thu Apr 24 08:50:03 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 511411065672 for ; Thu, 24 Apr 2008 08:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 60CFD8FC13 for ; Thu, 24 Apr 2008 08:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3O8o2Q8096123 for ; Thu, 24 Apr 2008 08:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3O8o2th096122; Thu, 24 Apr 2008 08:50:02 GMT (envelope-from gnats) Date: Thu, 24 Apr 2008 08:50:02 GMT Message-Id: <200804240850.m3O8o2th096122@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Ganbold Cc: Subject: Re: misc/123045: ng_mppc_decompress - disabling node X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ganbold List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 08:50:03 -0000 The following reply was made to PR misc/123045; it has been noted by GNATS. From: Ganbold To: Mihail Cc: bug-followup@FreeBSD.org, Alexander Motin Subject: Re: misc/123045: ng_mppc_decompress - disabling node Date: Thu, 24 Apr 2008 16:02:36 +0800 Mihail wrote: >> Number: 123045 >> Category: misc >> Synopsis: ng_mppc_decompress - disabling node >> Confidential: no >> Severity: non-critical >> Priority: medium >> Responsible: freebsd-bugs >> State: open >> Quarter: >> Keywords: >> Date-Required: >> Class: sw-bug >> Submitter-Id: current-users >> Arrival-Date: Thu Apr 24 07:10:03 UTC 2008 >> Closed-Date: >> Last-Modified: >> Originator: Mihail >> Release: 6.3 >> Organization: >> Environment: >> > FreeBSD 6.3-RELEASE-p2 > >> Description: >> > Problem with mpd with mppc encription: > sometimes ng interface was disabled by kernel with message: > ng_mppc_decompress: too many (4094) packets dropped, disabling node 0xHHHHHHHH! > Is exist a method to reconnect node without disabling ? > According to ng_mppc.c code in FreeBSD 7.0-STABLE(Tue Apr 22 12:01:33 ULAT 2008): ... /* * When packets are lost with MPPE, we may have to re-key arbitrarily * many times to 'catch up' to the new jumped-ahead sequence number. * Since this can be expensive, we pose a limit on how many re-keyings * we will do at one time to avoid a possible D.O.S. vulnerability. * This should instead be a configurable parameter. */ #define MPPE_MAX_REKEY 1000 ... /* How many times are we going to have to re-key? */ rekey = ((d->cfg.bits & MPPE_STATELESS) != 0) ? numLost : (numLost / (MPPE_UPDATE_MASK + 1)); if (rekey > MPPE_MAX_REKEY) { log(LOG_ERR, "%s: too many (%d) packets" " dropped, disabling node %p!", __func__, numLost, node); priv->recv.cfg.enable = 0; goto failed; } ... failed: m_freem(m); return (EINVAL); } ... One thing you can try is to set MPPE_MAX_REKEY something higher and compile ng_mppc and test. I'm not quite sure whether it is correct way of fixing such problem. hth, Ganbold >> How-To-Repeat: >> > Sometimes (once in several day) > >> Fix: >> > > > >> Release-Note: >> Audit-Trail: >> Unformatted: >> > _______________________________________________ > freebsd-bugs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org" > > > > -- Therefore it is necessary to learn how not to be good, and to use this knowledge and not use it, according to the necessity of the cause. -- Machiavelli