Messages in this thread | | | Date | Mon, 18 Mar 2002 16:49:13 -0500 (EST) | From | <> | Subject | RE: Trapping all Incoming Network Packets |
| |
On Mon, 18 Mar 2002, Hari Gadi wrote:
> Hi, > Is it possible to change the packet (add an extra ip header) > and send it back to network bypassing the routing functionality. > I want to do my own routing.( I add the hardware address of the destination machine)
In IP-IP encapsualtion, after adding the outer IP header, the ip_send function is invoked. Instead for your purpose you can have your own function and write your routing table lookup. You can check the net/ipv4/ipip.c code
--pradipta
- 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/
| |