From owner-freebsd-hackers Wed Sep 29 8: 9:47 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from plains.NoDak.edu (plains.NoDak.edu [134.129.111.64]) by hub.freebsd.org (Postfix) with ESMTP id 7297314DB4; Wed, 29 Sep 1999 08:09:42 -0700 (PDT) (envelope-from tinguely@plains.NoDak.edu) Received: (from tinguely@localhost) by plains.NoDak.edu (8.9.3/8.9.3) id KAA14058; Wed, 29 Sep 1999 10:09:40 -0500 (CDT) Date: Wed, 29 Sep 1999 10:09:40 -0500 (CDT) From: Mark Tinguely Message-Id: <199909291509.KAA14058@plains.NoDak.edu> To: danhil@cwnt.com, phk@FreeBSD.ORG Subject: Re: The sppp driver Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG (deletes and edits) > But, in the later case, the control messages are queued to > the control queue (sp->pp_cpq) which the if_start functions > doesn't have access to. in the ISDN (sys/i4b/driver) code, the interface target of the if_start(), there is a call to sppp_dequeue() which gets the top packet, by first searching the control, then the priority and finally the normal queues (the last two queue are checked only if the PPP is in the NCP mode). > - How do you recommend connecting my ioctrl functions to the sppp ioctrl > function (I have to call the ioctrl function because, as I understood > it, this is the way to start the lcp messaging). I think the best way is > to do this in the sppp_attach function. I am confused here. by default the LCP is started when the physical IDSN link is started sppp_lcp_up(). This changes to the Open state. If you are using the manual mode, then you need to follow the man page and specify when you want the PPP to start the LCP. ------- The best way to learn sppp is to get a copy of RFC 1661, understand it and then follow how that maps into sppp code (aka, RTFS). The sppp is more efficient than ppp and pppd because it does not have to map the packets from kernel space to user space and then back again, plus the advatages not having to service interrupts on each character, the synchronous link does not need to map Asynchronous-Control-Character-Map characters and Frame Check Sums. IMHO, Joerg Wunsch should be commended for the work of adding the RFC 1661 support. For this reason, I would suggest starting with the FreeBSD-3.2 or FreeBSD-3.3 (which has one minor state correction) version of sppp. sppp would make an excellent starting point for any PPP over permanent packet oriented connection medium such as DSL over ATM, ATM, possibly Ethernet or UDP. --mark. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message