mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jean Tourrilhes <jt@bougret.hpl.hp.com>
To: fabrizio.gennari@philips.com
Cc: linux-kernel@vger.kernel.org, linux-net@vger.kernel.org
Subject: Re: PPP over socket?
Date: Mon, 14 Jan 2002 09:28:02 -0800	[thread overview]
Message-ID: <20020114092802.D26289@bougret.hpl.hp.com> (raw)
In-Reply-To: <OFDAD62848.4EE45082-ONC1256B41.00314A4F@diamond.philips.com>
In-Reply-To: <OFDAD62848.4EE45082-ONC1256B41.00314A4F@diamond.philips.com>; from fabrizio.gennari@philips.com on Mon, Jan 14, 2002 at 10:07:22AM +0100

On Mon, Jan 14, 2002 at 10:07:22AM +0100, fabrizio.gennari@philips.com wrote:
> (let's hope this time the mail client understands I want to send this in 
> plain text!)
> 
> I thought that, by changing the socket architecture, the result would be 
> independent to the actual implementation of the socket. For example, a 
> "PPP over generic socket" could be adapted to "PPP over AF_IRDA socket" 
> without having to tear one's hair out implementing the pretty complex 
> /dev/irnet virtual TTY. That is a good solution anyway, but it is very 
> difficult to port it to different kinds of socket.

	I agree in theory, but in practice the problem is the
connection setup. On IrDA, you need "someone" to perform the IAS query
on the right device with the right service name (if you are BlueTooth
oriented, think Inquiry + SDP query). If you look IrNET, the actual
data path is only 10% (or less) of the code, most of the code deal
with discovery and connection setup, and this is purely specific to
the PPP over IrDA solution.
	By the way, the virtual TTY is not that complex, it's more
complex in the case of IrNET because I actually use the TTY interface
for the control channel. If you remove the control channel, it's
pretty straightforward.

> What do you exactly mean with "kernel space wrapper"?

	Like IrNET. There may be way to hook on top of the socket API
from kernel space without modifications (by implementing the bottom
half of the socket layer).

> I guess "user space 
> wrapper" is something like VTun (which I tried, and it works like a dream. 
> Only, isn't it a bit inefficient to go through user space?)

	Did you measure those inefficiencies in practice ?

	Jean

  reply	other threads:[~2002-01-14 17:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-14  9:07 fabrizio.gennari
2002-01-14 17:28 ` Jean Tourrilhes [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-01-12  2:17 Jean Tourrilhes
     [not found] <OF89E28C88.FEBD33E7-ONC1256B3E.002E62B6@diamond.philips.com>
2002-01-12  1:12 ` Chris Dukes
2002-01-12  1:44   ` J Sloan

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=20020114092802.D26289@bougret.hpl.hp.com \
    --to=jt@bougret.hpl.hp.com \
    --cc=fabrizio.gennari@philips.com \
    --cc=jt@hpl.hp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-net@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

Powered by JetHome