From: Prasanna S Panchamukhi <prasanna@in.ibm.com>
To: linux-kernel@vger.kernel.org, torvalds@osdl.org, ak@muc.de,
akpm@osdl.org, suparna@in.ibm.com
Subject: [2/3] kprobes-netfilter-268-rc3.patch
Date: Thu, 5 Aug 2004 15:32:27 +0530 [thread overview]
Message-ID: <20040805100227.GB2303@in.ibm.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 335 bytes --]
Hi,
Below is the [2/3] kprobes-netfilter-268-rc3.patch.
This patche includes changes to export the dump_packet routine.
Please see the description of individual patches for more details.
Thanks
Prasanna
--
Prasanna S Panchamukhi
Linux Technology Center
India Software Labs, IBM Bangalore
Ph: 91-80-25044636
<prasanna@in.ibm.com>
[-- Attachment #2: kprobes-netfilter-268-rc3.patch --]
[-- Type: text/plain, Size: 1442 bytes --]
This patch exports the dump_packet kernel routine, useful for dumping
network packets.
---
---
diff -puN include/linux/netfilter_ipv4/ipt_LOG.h~kprobes-netfilter-268-rc3 include/linux/netfilter_ipv4/ipt_LOG.h
--- linux-2.6.8-rc3/include/linux/netfilter_ipv4/ipt_LOG.h~kprobes-netfilter-268-rc3 2004-08-06 04:39:40.815978448 -0700
+++ linux-2.6.8-rc3-root/include/linux/netfilter_ipv4/ipt_LOG.h 2004-08-06 04:39:40.826976776 -0700
@@ -11,5 +11,7 @@ struct ipt_log_info {
unsigned char logflags;
char prefix[30];
};
+void dump_packet(const struct ipt_log_info *info, const struct sk_buff *skb,
+ unsigned int iphoff);
#endif /*_IPT_LOG_H*/
diff -puN net/ipv4/netfilter/ipt_LOG.c~kprobes-netfilter-268-rc3 net/ipv4/netfilter/ipt_LOG.c
--- linux-2.6.8-rc3/net/ipv4/netfilter/ipt_LOG.c~kprobes-netfilter-268-rc3 2004-08-06 04:39:40.819977840 -0700
+++ linux-2.6.8-rc3-root/net/ipv4/netfilter/ipt_LOG.c 2004-08-06 04:39:40.827976624 -0700
@@ -41,7 +41,7 @@ MODULE_PARM_DESC(nflog, "register as int
static spinlock_t log_lock = SPIN_LOCK_UNLOCKED;
/* One level of recursion won't kill us */
-static void dump_packet(const struct ipt_log_info *info,
+void dump_packet(const struct ipt_log_info *info,
const struct sk_buff *skb,
unsigned int iphoff)
{
@@ -461,5 +461,6 @@ static void __exit fini(void)
ipt_unregister_target(&ipt_log_reg);
}
+EXPORT_SYMBOL_GPL(dump_packet);
module_init(init);
module_exit(fini);
_
next reply other threads:[~2004-08-05 9:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-05 10:02 Prasanna S Panchamukhi [this message]
2004-08-05 11:06 ` [2/3] kprobes-netfilter-268-rc3.patch Patrick McHardy
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=20040805100227.GB2303@in.ibm.com \
--to=prasanna@in.ibm.com \
--cc=ak@muc.de \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=suparna@in.ibm.com \
--cc=torvalds@osdl.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