Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Sun, 17 Mar 2002 21:10:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Sun, 17 Mar 2002 21:09:55 -0500 Received: from quechua.inka.de ([212.227.14.2]:33150 "EHLO mail.inka.de") by vger.kernel.org with ESMTP id ; Sun, 17 Mar 2002 21:09:43 -0500 From: Bernd Eckenfels To: linux-kernel@vger.kernel.org Subject: Re: Trapping all Incoming Network Packets In-Reply-To: X-Newsgroups: ka.lists.linux.kernel User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.0.39 (i686)) Message-Id: Date: Mon, 18 Mar 2002 03:09:40 +0100 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org In article you wrote: > I am trying to write a module that will redirect all the packets to my > recv routine, instead of going to the recv routines of the specific > protocols. For example, a packet with the protocol field ETH_P_IP should > come to "my_recv" before going to ip_rcv. You should elaborate for what you need it. You can use the TUN/TAP driver for usermode, use netfilter hooks for filtering. Greetings Bernd - 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/