Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Dec 2001 12:33:07 +0200
From:      Richard =?utf-8?B?xIxlcGFz?= <rch@richard.eu.org>
To:        Brian Somers <brian@freebsd-services.com>
Cc:        Matthew Emmerton <matt@gsicomp.on.ca>, freebsd-questions@FreeBSD.ORG
Subject:   Re: userland ppp goes into loop after link goes down
Message-ID:  <20011210123307.D99801@richard.eu.org>
In-Reply-To: <200112101017.fBAAHDE85598@hak.lan.Awfulhak.org>
References:  <matt@gsicomp.on.ca> <00bf01c18134$73669630$1200a8c0@gsicomp.on.ca> <200112101017.fBAAHDE85598@hak.lan.Awfulhak.org>

next in thread | previous in thread | raw e-mail | index | archive | help
        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 <brian@freebsd-services.com>                <brian@Awfulhak.org>
>      http://www.freebsd-services.com/        <brian@[uk.]FreeBSD.org>
>Don't _EVER_ lose your sense of humour !      <brian@[uk.]OpenBSD.org>
>

-- 
      ☻ Ričardas Čepas ☺
~~
~

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011210123307.D99801>