From owner-freebsd-hackers Tue Feb 22 13: 4:40 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from bubba.whistle.com (bubba.whistle.com [207.76.205.7]) by hub.freebsd.org (Postfix) with ESMTP id EEF0337B6D1; Tue, 22 Feb 2000 13:04:36 -0800 (PST) (envelope-from archie@whistle.com) Received: (from archie@localhost) by bubba.whistle.com (8.9.3/8.9.2) id NAA30708; Tue, 22 Feb 2000 13:04:34 -0800 (PST) From: Archie Cobbs Message-Id: <200002222104.NAA30708@bubba.whistle.com> Subject: Re: NETGRAPH patches (proposal) In-Reply-To: <20000221143707.21862.qmail@web119.yahoomail.com> from Maksim Yevmenkin at "Feb 21, 2000 06:37:07 am" To: m_evmenkin@yahoo.com (Maksim Yevmenkin) Date: Tue, 22 Feb 2000 13:04:34 -0800 (PST) Cc: freebsd-current@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Maksim Yevmenkin writes: > Here are some small patches for NETGRAPH. > These are against -current cvsup'ed yesterday around 8:30pm EST. > > http://home.earthlink.net/~evmax/ng.tar.gz > > It also includes small test program (based on nghook). > Compile and run it like: > > # ./a.out -a iface_name: divert > > NETGRAPH option in kernel config file is required. > > Here is the description. ng_ether node has two hooks ``divert'' and > ``orphan''. > It is possible to connect to the one of the hooks and intercept row Ethernet > frames. But there is no clean way to intercept frame, do something and > return it back to kernel. > > This patch provides additional hook ``divertin'' (mmm... name is not good, > i think) for each ng_ether node. > > Implementation issues > > This will not work for ``orphan'' frames. Since kernel drops it anyway, i > decided to leave it as it is. But is is possible to intercept ``orphan'' > packets, change it, and write back to ``divertin''. The "divertin" hook is a useful idea.. after 4.0-REL we can check something in based on your patches... Thanks! -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message