Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2000 13:53:32 -0800 (PST)
From:      Archie Cobbs <archie@whistle.com>
To:        nms@Brigada-A.Ethereal.RU (Nikolai Saoukh)
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: NETGRAPH patches (proposal)
Message-ID:  <200002222153.NAA37333@bubba.whistle.com>
In-Reply-To: <20000223002621.A25661@Draculina.Universe> from Nikolai Saoukh at "Feb 23, 2000 00:26:21 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Nikolai Saoukh writes:
> > > 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?

Yes they are.. but we need two hooks: one for packets going out
on the wire, and one for packets going into the protocol stack.. right?
It doesn't seem like overloading "orphan" for the latter task
is the right answer.

-Archie

___________________________________________________________________________
Archie Cobbs   *   Whistle Communications, Inc.  *   http://www.whistle.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002222153.NAA37333>