From owner-freebsd-hackers Thu Sep 30 3:52:48 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alpha.netvision.net.il (alpha.netvision.net.il [194.90.1.13]) by hub.freebsd.org (Postfix) with ESMTP id 9312815955; Thu, 30 Sep 1999 03:52:44 -0700 (PDT) (envelope-from danhil@cwnt.com) Received: from unspecified.host (RAS4-p71.hfa.netvision.net.il [62.0.146.199]) by alpha.netvision.net.il (8.9.3/8.8.6) with SMTP id MAA27248; Thu, 30 Sep 1999 12:52:42 +0200 (IST) Received: from 192.168.0.46 ([192.168.0.46]) by 192.168.0.1 (WinRoute 3.04g) with SMTP; Thu, 30 Sep 1999 12:51:09 +0200 Message-ID: <050001bf0b3a$13e078b0$2e00a8c0@nt46daniel> From: "Daniel Hilevich" To: , References: <199909300941.LAA77105@zibbi.mikom.csir.co.za> Subject: Re: A bug in the sppp driver? Date: Thu, 30 Sep 1999 12:51:05 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > I think you are trying to bypass things. Look at rfc1661 on page 6 and > 12-13. If you are in state initial, you are not supposed to react to > anything except Up, Open and Close events. > > Have a look at the other drivers like ar(4), cx(4) and sr(4) to see > how they use it. Also remember that they need an ifconfig to get > started. That help them trough a lot of the states. Ifconfig will > have the effect of giving an Up and then an Open event, which will > take sppp from the Initial(0) state to Closed(2) and then to > Req-Sent(6). > > John You are absolutely right when it comes to handling the sppp driver in manual mode. The user creates a Up event using ifconfig and a Open event moves the fsm from Starting(1) to Req-Sent(6). In my case, although, I want to use the IFF_AUTO (dial on demand) option and this is where ifconfig can not help me. In the auto mode, the sppp driver should initialize the lcp machine when it gets a new message to send. In line 646 (sppp_output) you can see a call to Open the lcp but because there was no previous Up event, the fsm moved from the Initial(0) state to the Starting(1) state and not to the Req-Sent(6) state. I think that in the auto mode, there should be an automatic call to the Up event, no? Thanks Daniel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message