Dropping packets, general kernel hacking (newbie questions)

Michael Borella (cathmike@xnet.com)
Fri, 22 Aug 1997 11:19:50 -0500 (CDT)


Hi,

I'm about to attempt my first kernel hacking. I need to make the
IP forwarding code for a linux router occasionally drop packets
and/or delay them some number of milliseconds. My first attempt
will be to add the code somewhere at the end of ip_forward.c,
before the packets get put on the interface queue.

I'm not really expecting anyone tosolve my problem,
but I would appreciate any advice on IP hacking in general and
kernel hacking. Are there any good online or print references?
I've been looking through Wright and Stevens vol. 2, but that
doesn't seem to be close enough to linux. I've also been
looking for the linux hacker's guide, but the Redhat link seems to
be down.

Advice appreciated,
Mike