From owner-freebsd-net@FreeBSD.ORG Tue Jan 20 00:47:28 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92CC216A4CE for ; Tue, 20 Jan 2004 00:47:28 -0800 (PST) Received: from mail.butovo-online.ru (mail.b-o.ru [212.5.78.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8533443D1D for ; Tue, 20 Jan 2004 00:47:27 -0800 (PST) (envelope-from resident@b-o.ru) Received: from [192.168.92.185] (helo=192.168.92.185) by mail.butovo-online.ru with esmtp (Exim 4.24) id 1AireK-000D7y-0s; Tue, 20 Jan 2004 11:54:16 +0300 Date: Tue, 20 Jan 2004 11:48:44 +0300 From: Andrew Riabtsev X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <1602380953.20040120114844@b-o.ru> To: Dinesh Nair In-Reply-To: <20040120012819.I312-100000@prophet.alphaque.com> References: <20040120012819.I312-100000@prophet.alphaque.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-net@freebsd.org Subject: Re[2]: netgraph questions on ng_tee, ng_iface, ng_socket X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew Riabtsev List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jan 2004 08:47:28 -0000 Hi, Dinesh, Monday, January 19, 2004, 8:29:23 PM, you wrote: DN> On Mon, 19 Jan 2004, Andrew Riabtsev wrote: >> DN> connecting the ng_iface hook inet to ng_ether's upper or lower doesnt make >> DN> any sense because ng_ether itself does not do an encasulation of the IP >> DN> packet into an ethernet frame. or am i wrong here, and just configuring it >> DN> wrongly ? >> >> Connecting ng_iface:inet and ng_ether:upper/lower do nothing, well, it >> do something but not what you are waiting for, i think. DN> i know, hence was asking if there was something i could do, even if it DN> meant writing an extension to ng_ether to create a new netgraph type. You could try to write netgraph module that makes same thing with packets and frame as functions ether_(input/output) in net/if_ethersubr.c. Thats all that come in my mind. -- Andrew mailto:resident@b-o.ru