All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: Jens-Michael Hoffmann <J.Hoffmann@option.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: tcp/ip connect on demand
Date: Thu, 03 Jul 2008 11:28:54 -0700	[thread overview]
Message-ID: <486D1A66.6010006@zytor.com> (raw)
In-Reply-To: <F67862BE33DC784289A6B34E92908FCF393FFE@SRV-SATURNUS.OPTION.local>

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.

	-hpa

  reply	other threads:[~2008-07-03 18:29 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 [this message]
2008-07-03 19:07   ` Jan Engelhardt
2008-07-03 19:15     ` H. Peter Anvin
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=486D1A66.6010006@zytor.com \
    --to=hpa@zytor.com \
    --cc=J.Hoffmann@option.com \
    --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 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.