Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 07 Nov 2002 14:32:01 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Julian Elischer <julian@elischer.org>
Cc:        Steve Tremblett <sjt@cisco.com>, freebsd-net@freebsd.org, freebsd-hackers@freebsd.org
Subject:   Re: input source for network application
Message-ID:  <3DCAE9E1.768685AF@mindspring.com>
References:  <Pine.BSF.4.21.0211071028180.5860-100000@InterJet.elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Julian Elischer wrote:
> Also look at ng_etf the ethertype filter..
> it is designed to connect to an ether node and filter out packets
> with a particular ethertype. yuo could alter it to examine for a
> particular tcp port number too.

[ ... ]

A more interesting problem is how to hook an address family to a
netgraph node.


> One possibility I am looking at is adding a netgraph hook onto ipfw
> so one could grab a packet on ipfw and force it out to a netgraph hook.

This would be moderately useful.  Another alternative would be to
provide a means of hooking all input from a particular ethernet card
into the netgraph framework, and run the machine with multiple
ethernet cards -- one for the normal stack, and one for the alternate
stack.

Another method is to use an alternate (fictitious) protocol family
and therefore ethertype that's a duplicate of the TCP stack, and do
the processing there, instead.  This is also rather trivial.

-- Terry

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?3DCAE9E1.768685AF>