Communication driver framework ?

Brooks Davis brooks at one-eyed-alien.net
Thu Jul 15 10:20:46 PDT 2004


On Thu, Jul 15, 2004 at 05:15:58PM +0100, Sifalakis, Manolis wrote:
> Hello all,
> 
> I am new to the list as well as "under the FreeBSD-hood" and this is my 
> first posting so pls forgive me if this has been asked 1000 times before 
> (I did not manage to find it in the archive).
> 
> We re planning to implement a programmable router framework for FreeBSD, 
> and basically we need to have a piece of code between the NIC driver(s) 
> and the protocol stack to pull out and push (back) in the forwarding 
> path network packets (and possibly do some low level routing among the 
> NIC interfaces there).
> 
> As a result I would like to ask if there is a communications driver 
> framework similar to NDIS -bleah- (in M$ Win) or STREAMS (in the -early- 
> ATT unix flavors), in FreeBSD. It would be significantly more efficient 
> and portable if we did not have to hard code in the kernel our 
> "intermediate" driver.

Netgraph can almost certaintly do what you want.  You'd probably
build a module that attached the per nic-module.  You might have to
implement per interface nodes if you need particular pseudo devices to
be supported, but that's not hard.

Here is a somewhat old article on netgraph:

http://www.daemonnews.org/200003/netgraph.html

The code for most netgraph modules lives under sys/netgraph.

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20040715/1bc9ad41/attachment.bin


More information about the freebsd-hackers mailing list