From owner-freebsd-net@FreeBSD.ORG Mon Jan 19 04:27:09 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 BA47316A4CE for ; Mon, 19 Jan 2004 04:27:09 -0800 (PST) Received: from mail.butovo-online.ru (mail.b-o.ru [212.5.78.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13C0F43D1D for ; Mon, 19 Jan 2004 04:27:08 -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 1AiYbI-000CPZ-9m for freebsd-net@freebsd.org; Mon, 19 Jan 2004 15:33:52 +0300 Date: Mon, 19 Jan 2004 15:28:25 +0300 From: Andrew Riabtsev X-Mailer: The Bat! (v1.62i) Business X-Priority: 3 (Normal) Message-ID: <14414573064.20040119152825@b-o.ru> To: freebsd-net@freebsd.org In-Reply-To: <20040119171546.T312-100000@prophet.alphaque.com> References: <20040119171546.T312-100000@prophet.alphaque.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: 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: Mon, 19 Jan 2004 12:27:09 -0000 Hi all, Monday, January 19, 2004, 12:34:25 PM, you wrote: DN> hey all, skiped DN> i need some understanding on what exactly ng_iface achieves, as it makes a DN> reference to the hook inet being connected to something. however, 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 ? DN> any pointers/explanations would sure help a lot. thanx in advance. Connecting ng_iface:inet and ng_ether:upper/lower do nothing, well, it do something but not what you are waiting for, i think. As wrotes in man ng_iface: This node type supports the following hooks: inet Transmission and reception of IP packets. ng_iface works with IP-packets, but ng_ether works with ethernet frames, so connecting it together require at least transformation module between IP-packets and ether-frames. -- Andrew mailto:resident@b-o.ru