netgraph questions on ng_tee, ng_iface, ng_socket
Andrew Riabtsev
resident at b-o.ru
Tue Jan 20 03:44:28 PST 2004
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 at b-o.ru
More information about the freebsd-net
mailing list