in
in ip_output.c ?
I haven't tried it, but it should have the effect you want. If also want
to cut anything being routed through your Linux box, make a similar
change in ip_forward.c and also change this:
iph->ttl--;
to
if (--iph->ttl > 10) {
iph->ttl = 10;
}
(note that I haven't looked at how the checksum header is recalculed for
a forwarded packet. This change might break it).
Cheers,
Christian.
PS: I have *not* tested this. These are only suggestions from looking at
the code.
-- ---------------------------------------------------------------- Christian Daudt (csd@microplex.com) Software Engineer Microplex Systems Ltd. URL: http://www.microplex.com/ "You can tell how far we have to go, when FORTRAN is the language of supercomputers." -- Steven Feiner