Re: tcp/ip connect on demand
From: H. Peter Anvin
Date: Thu Jul 03 2008 - 14:29:26 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/