From owner-freebsd-net@FreeBSD.ORG Mon Jul 2 20:42:27 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8170816A46F for ; Mon, 2 Jul 2007 20:42:27 +0000 (UTC) (envelope-from mav@freebsd.org) Received: from mail.alkar.net (mail.alkar.net [195.248.191.95]) by mx1.freebsd.org (Postfix) with ESMTP id 0AADF13C4C1 for ; Mon, 2 Jul 2007 20:42:26 +0000 (UTC) (envelope-from mav@freebsd.org) Received: from [195.248.178.122] (HELO [192.168.3.2]) by mail.alkar.net (CommuniGate Pro SMTP 5.1.10) with ESMTPS id 789705723; Mon, 02 Jul 2007 23:42:25 +0300 Message-ID: <46896330.7070000@freebsd.org> Date: Mon, 02 Jul 2007 23:42:24 +0300 From: Alexander Motin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martha Pasikatan References: <1183389786.00767485.1183376402@10.7.7.3> In-Reply-To: <1183389786.00767485.1183376402@10.7.7.3> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: Sample Netgraph code that unhooks and rehooks without losing connection X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Jul 2007 20:42:27 -0000 Martha Pasikatan wrote: > I would like to be able to unhook a pppoe node hooked to link0 and rehook it to a tee node. Can anyone give me a sample on how to do this? That's impossible. As soon as pppoe node hook is disconnected all related info will be destroyed and session will be terminated. You should put there some other node like ng_tee to prevent session termination. -- Alexander Motin