From owner-freebsd-isdn Fri Jan 24 3:41:55 2003 Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5186A37B401 for ; Fri, 24 Jan 2003 03:41:54 -0800 (PST) Received: from mailout03.sul.t-online.com (mailout03.sul.t-online.com [194.25.134.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC68A43F1E for ; Fri, 24 Jan 2003 03:41:53 -0800 (PST) (envelope-from garyj@jennejohn.org) Received: from fwd10.sul.t-online.de by mailout03.sul.t-online.com with smtp id 18c2DY-0006rP-0I; Fri, 24 Jan 2003 12:41:52 +0100 Received: from peedub.jennejohn.org (520017439985-0001@[217.235.117.132]) by fmrl10.sul.t-online.com with esmtp id 18c2DV-1jh7ZIC; Fri, 24 Jan 2003 12:41:49 +0100 Received: from peedub.jennejohn.org (localhost [127.0.0.1]) by peedub.jennejohn.org (8.12.6/8.11.6) with ESMTP id h0OBfi6e003789; Fri, 24 Jan 2003 12:41:45 +0100 (CET) (envelope-from garyj@peedub.jennejohn.org) Message-Id: <200301241141.h0OBfi6e003789@peedub.jennejohn.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.3 To: "Ari Suutari" Cc: "G Hasse" , freebsd-isdn@FreeBSD.ORG Subject: Re: Problem with "no bufferspace" - solution Reply-To: Gary Jennejohn In-reply-to: Your message of "Fri, 24 Jan 2003 12:37:51 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 24 Jan 2003 12:41:44 +0100 From: Gary Jennejohn X-Sender: 520017439985-0001@t-dialin.net Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Gary Jennejohn writes: > > while((m = sppp_dequeue(&sc->sc_if)) != NULL) > > m_freem(m); > > } > /* taken from spp_lcp_down */ > if ((ifp->if_flags & (IFF_AUTO | IFF_PASSIVE)) == 0) > if_down(ifp); > else { > sp->pp_flags &= ~PP_CALLIN; > #if 0 > /* we assume STATE_INITIAL here! */ > /* these lines kept for information only */ > if (sp->state[IDX_LCP] != STATE_INITIAL) > lcp.Close(sp); > #endif > ifp->if_flags &= ~IFF_RUNNING; > } + sc->sc_state = ST_IDLE; > > } > > } > > > replying to my own mail. Also keep the ST_IDLE! --- Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org gj@denx.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message