CONTROL FLOW AT KERNEL LEVEL :
Whenever a packet is received the function ip_rcv() gets called (present in
file /net/ipv4/ip_input.c). At the end of this function I change the source
and destination IPs. Next ip_route_input() is called. This function tires to
route the the packet and in course calls a function fib_lookup() to see if
the routing table has the entry. The fib_lookup returns a result, the type of
which not being RTN_UNICAST. Since its not a unicast packet, control goes to
a label martian_source and the destination machine does not receive the
packet. I wanted to know if it is possible to forward a packet with the src
IP changed to the local IP.
Please do let me know if anyone can help me with this one.
Thanks & Regards,
Roma
-
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/