The program calls the socket stuff which goes to the inet_ functions in
the kernel. Packet generation would begin there, but I wan't that to
happen in user space, so that the socket stuff is in kenrnel, but
everyhing else is outside.

Luke(Boo) Farrar.

On Sat, 10 Jul 1999, Blaz Antonic wrote:

> > 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
> 

Reply via email to