Date: Thu, 30 Sep 1999 12:51:05 +0100 From: "Daniel Hilevich" <danhil@cwnt.com> To: <freebsd-hackers@FreeBSD.ORG>, <freebsd-questions@FreeBSD.ORG> Subject: Re: A bug in the sppp driver? Message-ID: <050001bf0b3a$13e078b0$2e00a8c0@nt46daniel> References: <199909300941.LAA77105@zibbi.mikom.csir.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?050001bf0b3a$13e078b0$2e00a8c0>