Re: Trapping all Incoming Network Packets

From: Bernd Eckenfels (ecki-news2002-03@lina.inka.de)
Date: Sun Mar 17 2002 - 21:09:40 EST


In article <Pine.GSO.4.33.0203171840250.5841-100000@compserv3> 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/



This archive was generated by hypermail 2b29 : Sat Mar 23 2002 - 22:00:14 EST