> Could people give me a few hints on this?
What exactly would you like to know ? Make some interface to kernel -
special (character ?) device that allows nothing but read()/write() and
ioctl() (and of course, mandatory open/release :-))). Whenever you
attempt to pas a packet (IP packet) to network layer you simply write to
this device, by using select() on it you will be able to notice new
packets (in separate, child process maybe). ioctl() will be there to
help you set any parameters you might need. This device driver would
then take care of passing this packet of yours to network interface.
You'd mostlikely have to do packet queues in your program, you don't
want to use ekrnel space for that (even though i think one should be
able to squeeze basic stack in remaining 4-5 KB).
bye, Ab