All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: ppp
Date: Thu, 12 Nov 2009 12:37:30 -0600	[thread overview]
Message-ID: <200911121237.30698.denkenz@gmail.com> (raw)
In-Reply-To: <4AFC1478.9070801@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]

Hi Ryan,

> Hello,
>
> We need a ppp interface for our modem. I was told on the chat forum that
> a tap/tun device was to be used. Has anyone else started with this or
> thought how to implement this?

We're currently working on a userspace ppp implementation that will integrate 
with GAtChat.  The goal here is to make it integrate well with the current 
multiplexed channel capability in GAtMux/GatChat and not need to involve an 
external daemon.

>
> After reading briefly the code from pppd, the implementation, for a
> first draft, is pretty straight forward (w/o encryption, etc. in
> userspace). "Just" dial the apn, and hand over the tty fd to ppp via ioctl.
>

Unfortunately it is not that simple.  pppd requires a proper kernel file 
descriptor to hand off to the kernel ppp line discipline.  In our userspace 
implementation that is not the case.  1 kernel file descriptor is shared by 
potentially many GAtChat channels using a multiplexing protocol.  Hence why we 
can't reuse the kernel implementation.

Regards,
-Denis

  reply	other threads:[~2009-11-12 18:37 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-12 13:58 ppp Ryan Raasch
2009-11-12 18:37 ` Denis Kenzior [this message]
2009-11-12 18:42   ` ppp Ryan Raasch
2009-11-12 19:39   ` ppp Chris Pitchford
2009-11-13 11:31     ` ppp =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-11-13 11:53       ` ppp Chris Pitchford
2009-11-14 18:50         ` ppp Andrzej Zaborowski
2009-11-14 19:26           ` ppp Chris Pitchford
2009-11-15  9:09             ` ppp =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
2009-11-13 12:02     ` ppp Marcel Holtmann
2009-11-13 12:13       ` ppp Chris Pitchford
2009-11-13 12:23         ` ppp Marcel Holtmann
2009-11-13 11:30   ` ppp =?unknown-8bit?q?R=C3=A9mi?= Denis-Courmont
  -- strict thread matches above, loose matches on Subject: below --
2002-10-22 16:17 PPP Pooja Nagpal
2002-10-23 12:18 ` PPP Harry Kalogirou
2002-05-06 22:23 ppp Russell Coker
2002-05-07  3:43 ` ppp John Summerfield
2002-05-07  4:57   ` ppp Russell Coker
2002-05-07 14:22 ` ppp Stephen Smalley
2002-05-08  0:28   ` ppp Russell Coker
2002-05-08 13:13     ` ppp Stephen Smalley
2002-05-09  4:41       ` ppp Russell Coker
2002-05-09 13:48         ` ppp Stephen Smalley

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=200911121237.30698.denkenz@gmail.com \
    --to=denkenz@gmail.com \
    --cc=ofono@ofono.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.