From: Chris Friesen <cfriesen@nortelnetworks.com>
To: prade@cs.sunysb.edu
Cc: linux-kernel@vger.kernel.org
Subject: Re: Trapping all Incoming Network Packets
Date: Mon, 18 Mar 2002 14:17:21 -0500 [thread overview]
Message-ID: <3C963D41.DEC929CC@nortelnetworks.com> (raw)
In-Reply-To: <Pine.GSO.4.33.0203181330530.5841-100000@compserv3>
prade@cs.sunysb.edu wrote:
> 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.
Write a netfilter module and bind it in to NF_IP_PRE_ROUTING or NF_IP_LOCAL_IN
as appropriate. This will allow you to analyze the packet and decide whether to
keep or discard it (or mangle it if you want).
This is what netfilter is there for.
Chris
--
Chris Friesen | MailStop: 043/33/F10
Nortel Networks | work: (613) 765-0557
3500 Carling Avenue | fax: (613) 765-2986
Nepean, ON K2H 8E9 Canada | email: cfriesen@nortelnetworks.com
next prev parent reply other threads:[~2002-03-18 19:08 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
2002-03-18 19:17 ` Chris Friesen [this message]
-- strict thread matches above, loose matches on Subject: below --
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=3C963D41.DEC929CC@nortelnetworks.com \
--to=cfriesen@nortelnetworks.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