Skip to contentSkip to conversation

kprobes-netfilter-268-rc3.patch

PATCH In review Prasanna S Panchamukhi 2 participants 2 messages Aug 5, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 kprobes-netfilter-268-rc3.patch

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

Signature · 5 lines
Prasanna S Panchamukhi
Linux Technology Center
India Software Labs, IBM Bangalore
Ph: 91-80-25044636
<[email protected]>

This patch exports the dump_packet kernel routine, useful for dumping network packets.
---

---

include/linux/netfilter_ipv4/ipt_LOG.h renamed from include/linux/netfilter_ipv4/ipt_LOG.h~kprobes-netfilter-268-rc3 +2 -0
diff -puN include/linux/netfilter_ipv4/ipt_LOG.h~kprobes-netfilter-268-rc3 include/linux/netfilter_ipv4/ipt_LOG.h
@@ -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*/
net/ipv4/netfilter/ipt_LOG.c renamed from net/ipv4/netfilter/ipt_LOG.c~kprobes-netfilter-268-rc3 +2 -1
diff -puN net/ipv4/netfilter/ipt_LOG.c~kprobes-netfilter-268-rc3 net/ipv4/netfilter/ipt_LOG.c
@@ -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);

_

#1 lore raw
Quoted 6 lines · Prasanna S Panchamukhi

Hi,

Below is the [2/3] kprobes-netfilter-268-rc3.patch. This patche includes changes to export the dump_packet routine.

Why aren't you using the exported logging interface, nf_log_packet ?

Regards
Patrick