public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Jens-Michael Hoffmann <J.Hoffmann@option.com>,
	linux-kernel@vger.kernel.org
Subject: Re: tcp/ip connect on demand
Date: Thu, 03 Jul 2008 12:15:48 -0700	[thread overview]
Message-ID: <486D2564.4030806@zytor.com> (raw)
In-Reply-To: <alpine.LNX.1.10.0807032106310.23294@fbirervta.pbzchgretzou.qr>

Jan Engelhardt wrote:
> On Thursday 2008-07-03 20:28, H. Peter Anvin wrote:
>> Jens-Michael Hoffmann wrote:
>>> hi,
>>>
>>> what is the right way to implement a "connect on demand" feature?
>>> Example: user types url in firefox and presses return. Then
>>> the system should set up network devices and proceed as usual.
>>>
>>> Is there a hook in the kernel we can use?
>> In the kernel, no.  Nor do you need one; the best place to hook into this is
>> probably the name service system (so you catch it on trying to look up
>> hostnames.)
>>
>> Alternatively, you can set up a bridge device which you can listen to via a tap
>> device; when you see traffic, you bring up the real network and attach it to
>> the bridge.
> 
> There is on-demand for PPP devices; though that is probably specific
> to PPP.

Yes, those monitor traffic at the PPP device port, I believe.

	-hpa

  reply	other threads:[~2008-07-03 19:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-03 11:29 tcp/ip connect on demand Jens-Michael Hoffmann
2008-07-03 18:28 ` H. Peter Anvin
2008-07-03 19:07   ` Jan Engelhardt
2008-07-03 19:15     ` H. Peter Anvin [this message]
2008-07-04 11:04       ` AW: " Jens-Michael Hoffmann

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=486D2564.4030806@zytor.com \
    --to=hpa@zytor.com \
    --cc=J.Hoffmann@option.com \
    --cc=jengelh@medozas.de \
    --cc=linux-kernel@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