Well. http://code.google.com/p/kmbge/, you know, and things.
It compiles. It installs. It manages to read out the frigging MAC address. And that is all, folks. No packet gets ever transmitted over it.
Well, I then peered into the code. Took also if_bge from OpenBSD (there's less code to start with). And you know what? The friggin' IOEthernetDriver documentation does not seem to tell me how to do actual packet reading and writing. There is an awful lot of documentation text, but not a working example whatsoever. What the hell, I know enough of C++ (or, well, “C with classes” which it really is) to make the thing work somewhat, but I also need some pointers on how things are actually done.
BTW, kmbge author seems to have disappeared. I have emailed him and still got no answer, after probably three months or so.
