From owner-freebsd-net Tue Feb 22 13:26:36 2000 Delivered-To: freebsd-net@freebsd.org Received: from Brigada-A.Ethereal.RU (Brigada-A.ethereal.ru [195.230.65.30]) by hub.freebsd.org (Postfix) with ESMTP id 40B7F37B6A5 for ; Tue, 22 Feb 2000 13:26:32 -0800 (PST) (envelope-from nms@Brigada-A.Ethereal.RU) Received: by Brigada-A.Ethereal.RU (Postfix, from userid 1002) id 21DB61D9; Wed, 23 Feb 2000 00:26:22 +0300 (MSK) Date: Wed, 23 Feb 2000 00:26:21 +0300 From: Nikolai Saoukh To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG Subject: Re: NETGRAPH patches (proposal) Message-ID: <20000223002621.A25661@Draculina.Universe> References: <20000221143707.21862.qmail@web119.yahoomail.com> <200002222104.NAA30708@bubba.whistle.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <200002222104.NAA30708@bubba.whistle.com>; from archie@whistle.com on Tue, Feb 22, 2000 at 01:04:34PM -0800 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Feb 22, 2000 at 01:04:34PM -0800, Archie Cobbs wrote: > > 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... I was under impression that hooks are bidirectional. Is not it? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message