Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755236AbYGDLHP (ORCPT ); Fri, 4 Jul 2008 07:07:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751958AbYGDLHD (ORCPT ); Fri, 4 Jul 2008 07:07:03 -0400 Received: from mailer1.option.com ([81.246.70.162]:42491 "EHLO mailer1.option.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbYGDLHA convert rfc822-to-8bit (ORCPT ); Fri, 4 Jul 2008 07:07:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApUAAIGgbUgKAAAZ/2dsb2JhbAAIsHpA X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Subject: AW: tcp/ip connect on demand Date: Fri, 4 Jul 2008 13:04:40 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: tcp/ip connect on demand Thread-Index: AcjdQTglR4sCRP4ESWKubhxEt9ZwfQAhIkjk References: <486D1A66.6010006@zytor.com> <486D2564.4030806@zytor.com> From: "Jens-Michael Hoffmann" To: "H. Peter Anvin" , "Jan Engelhardt" Cc: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1240 Lines: 33 >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. thanks for the help guys, that looks like what we are looking for. Best regards Jens-Michael Hoffmann -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/