lkml.org 
[lkml]   [2000]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectgrabbing all IP packets
Hi,

I am trying to find a way to catch all IP packets (OUTGOING, HOST,
OTHERHOST etc.) before the rest of the stack processes them.

It is important that this is done from a module and involves no patching of the
kernel source.

Doing a dev_add_pack() with type ETH_P_IP only gets incoming packets and
ETH_P_ALL clones the sk_buff's. It is important that the packet is not
duplicated as this is intended to be used for a firewall type of
application.

Is there any other way to do this ? (Except for a runtime kernel patch of
ip_rcv and ip_output (which I am desperately trying to avoid)).

Help is greatly appreciated.

chris

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.037 / U:0.368 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site