From: "Robert Pfister" <robertp@ustri.com>
To: <prade@cs.sunysb.edu>
Cc: <linux-kernel@vger.kernel.org>
Subject: RE: Trapping all Incoming Network Packets
Date: Mon, 18 Mar 2002 12:15:07 -0700 [thread overview]
Message-ID: <003901c1ceb1$37268890$1e00a8c0@nomaam> (raw)
In-Reply-To: <Pine.GSO.4.33.0203181330530.5841-100000@compserv3>
prade@cs.sunysb.edu writes:
>To do it in user space, you have to use the raw socket interface. This
>by-passes the entire TCP/IP stack. I want to sniff the packets, and make a
>decision based on certain characteristics of each packet. So I need to
>have a filter between the IP and link-layer. Also, I do not want the
>filter to slow down traffic. Hence I believe implementing inside kernel
>will be more efficient.
I've looked at an implementation of something similar. The approach was as
follows:
* insert a "hook" into the netif_rx that would act as a filter
* use a module that:
* activates hook
* apply filtering
* sends back packets to netif_rx for normal processing
* when module is unloaded, deactivate the "hook"
next prev parent reply other threads:[~2002-03-18 19:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-17 23:57 Trapping all Incoming Network Packets prade
2002-03-18 2:09 ` Bernd Eckenfels
2002-03-18 18:27 ` Robert Pfister
2002-03-18 18:40 ` prade
2002-03-18 19:15 ` Robert Pfister [this message]
2002-03-18 19:17 ` Chris Friesen
2002-03-18 19:41 Hari Gadi
2002-03-18 21:49 ` prade
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003901c1ceb1$37268890$1e00a8c0@nomaam' \
--to=robertp@ustri.com \
--cc=linux-kernel@vger.kernel.org \
--cc=prade@cs.sunysb.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).