packet forwarding question

Samarth Shah (shshah@wins.hrl.com)
Mon, 6 Aug 2001 14:45:42 -0700 (PDT)


Hi,

I would like to do some processing on packets that are being forwarded by
a linux box configured for IPv4 forwarding. I understand that, at the end
of ip_input.c, the input function pointer of the dst_entry points to the
function that will be doing the forwarding.

I would like to know what is the name of this function. How do I do some
processing on the packet, so that my code is executed only when the packet
is going to be forwarded and not if this host is the sender or receiver?

My guess was that if I can know what function skb->dst->input points to in
the case of packet forwarding, I can call my code from within that
function. But perhaps that's not right and there's a better way...

Any help would be appreciated.

Thanks and regards,
Samarth.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/