From: James Carlson <carlsonj@carlson.workingcode.com>
To: linux-ppp@vger.kernel.org
Subject: Re: PPP state machine
Date: Wed, 16 Jun 2004 12:43:03 +0000 [thread overview]
Message-ID: <16592.16471.446265.776880@carlson.workingcode.com> (raw)
In-Reply-To: <1087365446.1118.10.camel@Bhaskar>
Bhaskar-ROCSYS writes:
> Hi
> First of all thanks for the response.
>
> To answer to big question of "Why?", farsync card that I am using has 4
> interfaces. And the application in which i am working on may need all
> the 4 interfaces to be up.
> If I have to use the existing code, then I need to run 4 different
> instances of pppd.
Right. Is having four daemons a problem? It makes the links easy to
administer and configure. What's the problem being solved?
> And if I want to use the same code, then I need to
> go for a design similar to pppoe. For such design i need to write code
> both in kernel space and user space.
Since you're talking about sync PPP, I don't understand the reference
to PPPoE. PPPoE is a bit of an ugly hack that involves (on Linux)
multiple trips in and out of the kernel for the data path. I don't
know why you'd want to do that.
The user space daemon already supports running on sync ports, and the
implementation is efficient -- it doesn't involve the pty tricks as
done for PPPoE. The data path is all in the kernel.
As far as I can tell, you don't need to change anything in user space.
You just need a sync driver for your card.
> I decide to stick to kernel space and implement the complete state
> machine in kernel space. I am only interested in state machine. Once
> this is done I will initiate the state machine from the sync ppp code.
>
> I think for implementing the state machine is independent of the mode.
In that case, best of luck.
next prev parent reply other threads:[~2004-06-16 12:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-16 5:52 PPP state machine Bhaskar-ROCSYS
2004-06-16 12:06 ` James Carlson
2004-06-16 12:41 ` Bhaskar-ROCSYS
2004-06-16 12:43 ` James Carlson [this message]
2004-06-16 12:58 ` Paul Mackerras
2004-06-16 13:00 ` Paul Mackerras
2004-06-16 17:51 ` Matthew N. Dodd
2004-06-17 4:23 ` James Cameron
2004-06-17 4:33 ` Bhaskar-ROCSYS
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=16592.16471.446265.776880@carlson.workingcode.com \
--to=carlsonj@carlson.workingcode.com \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).