All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Chapman <jchapman@katalix.com>
To: Kevin Lloyd <klloyd@sierrawireless.com>
Cc: Dan Williams <dcbw@redhat.com>, netdev@vger.kernel.org
Subject: Re: Network device driver with PPP
Date: Fri, 29 Feb 2008 15:02:52 +0000	[thread overview]
Message-ID: <47C81E9C.4050903@katalix.com> (raw)
In-Reply-To: <3415E2A2AB26944B9159CDB22001004D024DA7DC@nestea.sierrawireless.local>

Kevin Lloyd wrote:
>> That seems quite icky to do all in kernel space and a pile of code
>> running in the kernel.  What's so wrong with userspace?  Don't you
> need
>> to push values to the driver like username/password and get IP config
>> out of it (which would involve userspace anyway)?  It just seems like
>> there's a different solution to your actual problem here than stuff
> all
>> off pppd into kernel space.
> 
> Actually we provide a method for the driver to obtain the
> username/password information needed for the CHAP authentication so in
> theory the driver has the information needed to create the connection.
> I'm not sure how it would go about setting the DNS and IP addresses, but
> that's a separate issue further down the road.

Can you explain why you need the driver to be involved in any of this?

> I understand that typical implementation is to deal with ppp
> negotiations in the userspace however are there no devices that have
> attempted this in the kernel space / no kernel space modules to aid with
> this? 

No.

Control protocols live in userspace, datapath in the kernel.

> Just trying to do a full investigation of all available options,
> even if they aren't the best ones.

> If not, is there a method for the network driver to launch pppd with a
> given set of parameters (not using udev) since the driver would be
> determining username/password runtime.

Can't you implement a private interface to your kernel driver so that 
userspace can ask it for the username/password and userspace then starts 
pppd with those parameters?


-- 
James Chapman
Katalix Systems Ltd
http://www.katalix.com
Catalysts for your Embedded Linux software development


  reply	other threads:[~2008-02-29 15:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-28  1:28 Network device driver with PPP Kevin Lloyd
2008-02-28  2:15 ` Dan Williams
2008-02-28  9:27   ` James Chapman
2008-02-28 16:19     ` Kevin Lloyd
2008-02-29 15:02       ` James Chapman [this message]
2008-03-01  1:41         ` Kevin Lloyd
2008-03-01 12:08           ` James Chapman

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=47C81E9C.4050903@katalix.com \
    --to=jchapman@katalix.com \
    --cc=dcbw@redhat.com \
    --cc=klloyd@sierrawireless.com \
    --cc=netdev@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.