From owner-freebsd-questions Mon Dec 10 2:34:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from richard.eu.org (adsl-213-190-39-200.takas.lt [213.190.39.200]) by hub.freebsd.org (Postfix) with ESMTP id 7A4BA37B41C for ; Mon, 10 Dec 2001 02:34:06 -0800 (PST) Received: (from rch@localhost) by richard.eu.org (8.11.0/8.11.0) id fBAAX7b36462; Mon, 10 Dec 2001 12:33:07 +0200 (EET) (envelope-from rch@richard.eu.org) Date: Mon, 10 Dec 2001 12:33:07 +0200 From: Richard =?utf-8?B?xIxlcGFz?= To: Brian Somers Cc: Matthew Emmerton , freebsd-questions@FreeBSD.ORG Subject: Re: userland ppp goes into loop after link goes down Message-ID: <20011210123307.D99801@richard.eu.org> References: <00bf01c18134$73669630$1200a8c0@gsicomp.on.ca> <200112101017.fBAAHDE85598@hak.lan.Awfulhak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200112101017.fBAAHDE85598@hak.lan.Awfulhak.org> User-Agent: Mutt/1.3.19i X-OS: FreeBSD 4.4-STABLE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Hmm, I had it: * $FreeBSD: src/usr.sbin/ppp/datalink.c,v 1.57.2.9 2001/10/26 10:00:39 brian Exp $ -r-sr-xr-- 1 root network 315328 Dec 4 02:12 /usr/sbin/ppp* And in log: Dec 8 21:44:42 richard ppp[87211]: tun0: CCP: deflink: State change Stopped --> Closed Dec 8 21:44:42 richard ppp[87211]: tun0: CCP: deflink: State change Closed --> Initial Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: open -> lcp Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: LayerDown: 213.190.39.170 Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: State change Opened --> Starting Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: LayerFinish. Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: Connect time: 300 secs: 0 octets in, 0 octets out Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: : 0 packets in, 0 packets out Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: total 0 bytes/sec, peak 0 bytes/sec on Sat Dec 8 21:44:42 2001 Dec 8 21:44:42 richard ppp[87211]: tun0: IPCP: deflink: State change Starting --> Initial Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: bundle: Terminate Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: Received NGM_PPPOE_CLOSE (hook "tun0") Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Device disconnected Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Disconnected! Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: lcp -> logout Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Disconnected! Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: logout -> hangup Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: Connect time: 303 secs: 215 octets in, 328 octets out Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: : 14 packets in, 16 packets out Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: total 1 bytes/sec, peak 85 bytes/sec on Sat Dec 8 21:44:42 2001 Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: deflink: hangup -> closed Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: bundle: Dead Dec 8 21:44:42 richard ppp[87211]: tun0: Phase: PPP Terminated (normal). I'm using now shell loop around ppp -foreground as a workaround. On Mon Dec 10 10:17:12 2001 +0000 Brian Somers wrote: >Hi, > >This should have been fixed in -stable with usr.sbin/ppp/datalink.c >revision 1.57.2.9 which was MFC'd on October 26. > > >> Yes, I believe this is similar to a problem I was seeing a few months back. >> Brian had a patch (which fixed the problem) and it was fixed in -CURRENT; >> I'm not sure if it's been MFC'd yet and/or when it will make it to >> a -RELEASE. >> >> Brian, can you confirm/deny? >> >> -- >> Matt Emmerton >> >> > Hi, >> > >> > I'm using 'ppp' with pppoe in dedicated or ddial mode and sometimes link >> goes down probably because of some problems on remote server. The problem >> is that 'ppp' after that goes into dead loop and you need to kill it and >> restart manually. Is it a known problem with 'ppp'? >> > >> > Dec 8 09:00:01 richard ppp[124]: tun0: Phase: deflink: write (1): Socket >> is not connected >> > Dec 8 09:00:01 richard ppp[124]: tun0: Phase: deflink: Disconnected! >> > Dec 8 09:00:01 richard ppp[124]: tun0: Phase: deflink: write (1): Socket >> is not connected >> > Dec 8 09:00:01 richard ppp[124]: tun0: Phase: deflink: Disconnected! >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: write (1): Socket >> is not connected >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: Disconnected! >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: write (1): Socket >> is not connected >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: Disconnected! >> > Dec 8 09:00:02 richard ppp[124]: tun0: Phase: deflink: write (1): Socket >> is not connected >> > >> > dsl: >> > set timeout 0 >> > #set log All >> > set device PPPoE:ed0 >> > set dial >> > set authname ****** >> > set authkey ****** >> > set ifaddr 213.190.39.245/16 0 >> > set lqr >> > set server /var/run/internet "" 0177 > >-- >Brian > http://www.freebsd-services.com/ >Don't _EVER_ lose your sense of humour ! > -- ☻ Ričardas Čepas ☺ ~~ ~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message