Click to See Complete Forum and Search --> : Networking Driver(More Info Inside)


tecknophreak
04-23-2007, 04:26 PM
Let's say I want to write a driver which, whenever an interrupt occurs on the parallel port(basing it off of the skeleton driver), sends a preconfigured UDP packet over the network. I want this to be on the driver level so that there is as little delay as possible. Any idea where to start looking or if there's a driver that does something like this? I've been looking through some of the IP source and there really aren't that many comments in the code to keep track of all that's going on, without cheat sheets.

I can do it from user level using raw packets, but that's no fun. :p

bwkaz
04-23-2007, 07:50 PM
Hmm...

I'd probably look into how the netconsole code sends its packets, and basically duplicate those calls. netconsole sends console messages via UDP packets (and interrupts aren't even required, which is good when the console message you need is "interrupts stopped working!" or equivalent ;)), so it should match up with what you want.

Of course, that will require a NIC and driver that can work in interrupt-less mode (my onboard ULi NIC (based off the Tulip chipset, but uses its own driver) can't).

tecknophreak
04-25-2007, 03:23 PM
I'm checking this out, but I have another issue I have to deal with first. There's another thread I'm starting since it's a different topic, the parallel port interrupts.