Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 18 Mar 2002 16:53:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 18 Mar 2002 16:52:57 -0500 Received: from sbcs.cs.sunysb.edu ([130.245.1.15]:423 "EHLO sbcs.cs.sunysb.edu") by vger.kernel.org with ESMTP id ; Mon, 18 Mar 2002 16:52:42 -0500 Date: Mon, 18 Mar 2002 16:49:13 -0500 (EST) From: X-X-Sender: To: Hari Gadi cc: Chris Friesen , Subject: RE: Trapping all Incoming Network Packets In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/