From: <prade@cs.sunysb.edu>
To: <linux-kernel@vger.kernel.org>
Cc: <prade@cs.sunysb.edu>
Subject: Trapping all Incoming Network Packets
Date: Sun, 17 Mar 2002 18:57:24 -0500 (EST) [thread overview]
Message-ID: <Pine.GSO.4.33.0203171840250.5841-100000@compserv3> (raw)
Hi,
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.
My restriction is I cannot add my own header. In other words, I cannot
register my own protocol handler and attach a header to each packet to
redirect it to "my_recv".
The option I figured out seems to be changing the function pointers, eg.
net_rx_action by my own net_rx_action at init_module time and restoring it
at cleanup. But since 2.4 kernel does not export any function to deal with
the data structures holding the function pointers, I am in a fix.
I look forward to some interesting suggestions about how to get around the
problem for 2.4 kernels.
Thanks,
-- pradipta.
NB. Plz say "yes" to the cc-option. Thx. :-)
next reply other threads:[~2002-03-18 0:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-17 23:57 prade [this message]
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
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=Pine.GSO.4.33.0203171840250.5841-100000@compserv3 \
--to=prade@cs.sunysb.edu \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®