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
pgpKqiPUKKJCt.pgp
Description: PGP signature

