From owner-freebsd-net@FreeBSD.ORG Tue Jan 20 03:44: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 367FE16A4CE for ; Tue, 20 Jan 2004 03:44: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 1D82643D2D for ; Tue, 20 Jan 2004 03:44: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 1AiuPY-000DMo-L3; Tue, 20 Jan 2004 14:51:12 +0300 Date: Tue, 20 Jan 2004 14:45:34 +0300 From: Andrew Riabtsev X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <4312991350.20040120144534@b-o.ru> To: Gleb Smirnoff In-Reply-To: <20040120091732.GB10731@cell.sick.ru> References: <20040120012819.I312-100000@prophet.alphaque.com> <1602380953.20040120114844@b-o.ru> <20040120091732.GB10731@cell.sick.ru> 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 11:44:28 -0000 GS> On Tue, Jan 20, 2004 at 11:48:44AM +0300, Andrew Riabtsev wrote: A>> >> Connecting ng_iface:inet and ng_ether:upper/lower do nothing, well, it A>> >> do something but not what you are waiting for, i think. A>> A>> DN> i know, hence was asking if there was something i could do, even if it A>> DN> meant writing an extension to ng_ether to create a new netgraph type. A>> A>> You could try to write netgraph module that makes same thing with A>> packets and frame as functions ether_(input/output) in A>> net/if_ethersubr.c. Thats all that come in my mind. GS> Isn't ng_etf(4) the one you need? As i undestand this module just filters packets, using values in ethernet header, but Dinesh need something that add ethernet header to ip packet in one direction and stript ip-packet from ethernet frame in other direction. -- Andrew mailto:resident@b-o.ru