All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] set match
@ 2006-05-28 17:42 Torsten Luettgert
  2006-05-28 22:33 ` Krzysztof Oledzki
  2006-05-29 22:41 ` Patrick McHardy
  0 siblings, 2 replies; 4+ messages in thread
From: Torsten Luettgert @ 2006-05-28 17:42 UTC (permalink / raw)
  To: netfilter-devel

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

Hello,

here's a simple patch for the set match in pom. It adds the
new protoff parameter in the match function of ipt_set.c and
changes struct ipt_ip * to void * in the checkentry function
of ipt_set.c and ipt_SET.c, so they compile without warnings.

Regards,
Torsten

[-- Attachment #2: set.patch --]
[-- Type: text/x-patch, Size: 1093 bytes --]

Index: set/linux-2.6/net/ipv4/netfilter/ipt_SET.c
===================================================================
--- set/linux-2.6/net/ipv4/netfilter/ipt_SET.c	(revision 6622)
+++ set/linux-2.6/net/ipv4/netfilter/ipt_SET.c	(working copy)
@@ -48,7 +48,7 @@
 
 static int
 checkentry(const char *tablename,
-	   const struct ipt_entry *e,
+	   const void *e,
 	   void *targinfo,
 	   unsigned int targinfosize, unsigned int hook_mask)
 {
Index: set/linux-2.6/net/ipv4/netfilter/ipt_set.c
===================================================================
--- set/linux-2.6/net/ipv4/netfilter/ipt_set.c	(revision 6622)
+++ set/linux-2.6/net/ipv4/netfilter/ipt_set.c	(working copy)
@@ -34,6 +34,7 @@
       const struct net_device *out,
       const void *matchinfo,
       int offset,
+      unsigned int protoff,
       int *hotdrop)
 {
 	const struct ipt_set_info_match *info = matchinfo;
@@ -45,7 +46,7 @@
 
 static int
 checkentry(const char *tablename,
-	   const struct ipt_ip *ip,
+	   const void *ip,
 	   void *matchinfo,
 	   unsigned int matchsize,
 	   unsigned int hook_mask)

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-29 22:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-28 17:42 [PATCH] set match Torsten Luettgert
2006-05-28 22:33 ` Krzysztof Oledzki
2006-05-29  7:28   ` Torsten Luettgert
2006-05-29 22:41 ` Patrick McHardy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.