All of lore.kernel.org
 help / color / mirror / Atom feed
* concerning p-o-m fixes for 2.6.17 API change
@ 2006-06-23 20:58 Torsten Luettgert
  2006-06-24  7:13 ` Krzysztof Oledzki
  2006-06-24 12:26 ` concerning p-o-m fixes for 2.6.17 API change Patrick McHardy
  0 siblings, 2 replies; 5+ messages in thread
From: Torsten Luettgert @ 2006-06-23 20:58 UTC (permalink / raw)
  To: netfilter-devel

Hi list,

I noticed the match/target API changed a bit in 2.6.17,
so a bunch of code in patch-o-matic-ng needs updates.
I fixed ipp2p, ROUTE, time, and u32 (it's quite trivial).

I'd like to submit the patches (and thus work against the
"bit-rot" we all hate). Problem is, they are quite clumsy -
the correct way IMHO is to copy the latest kernel directory
(normally linux-2.6/) to linux-2.6.17 and then fix that,
so 2.6.16 and older kernels still work, too. So you can't
see what is happening in the patches, they just create 99%
identical copies of the old files.

Patrick, I guess you're the one to ask - would you like
those patches, and in what format?

Regards,
Torsten

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

* Re: concerning p-o-m fixes for 2.6.17 API change
  2006-06-23 20:58 concerning p-o-m fixes for 2.6.17 API change Torsten Luettgert
@ 2006-06-24  7:13 ` Krzysztof Oledzki
  2006-06-24 13:51   ` [PATCH] 2.6.17 API changes for ipp2p, time Torsten Luettgert
  2006-06-24 12:26 ` concerning p-o-m fixes for 2.6.17 API change Patrick McHardy
  1 sibling, 1 reply; 5+ messages in thread
From: Krzysztof Oledzki @ 2006-06-24  7:13 UTC (permalink / raw)
  To: Torsten Luettgert; +Cc: netfilter-devel

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1274 bytes --]



On Fri, 23 Jun 2006, Torsten Luettgert wrote:

> Hi list,
>
> I noticed the match/target API changed a bit in 2.6.17,
> so a bunch of code in patch-o-matic-ng needs updates.
> I fixed ipp2p, ROUTE, time, and u32 (it's quite trivial).
>
> I'd like to submit the patches (and thus work against the
> "bit-rot" we all hate). Problem is, they are quite clumsy -
> the correct way IMHO is to copy the latest kernel directory
> (normally linux-2.6/) to linux-2.6.17 and then fix that,
> so 2.6.16 and older kernels still work, too. So you can't
> see what is happening in the patches, they just create 99%
> identical copies of the old files.
>
> Patrick, I guess you're the one to ask - would you like
> those patches, and in what format?

As for time and ipp2p current pom-ng contains versions for 2.6.16 and 
2.6.16.x (-stable) kernels. There is no need to keep patches for that 
kernels since anyone interesed in older kernels than 2.6.17 is able to 
take older pom-ng tarball. So, please send ipp2p and time (with CC to me) 
and patches that only corrects API in the "linux-2.6" directory . The same 
advise is probably correct for both ROUTE and u32 but I think Patrick 
should confirm this.

Thanks.

Best regards,

 				Krzysztof Olędzki

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

* Re: concerning p-o-m fixes for 2.6.17 API change
  2006-06-23 20:58 concerning p-o-m fixes for 2.6.17 API change Torsten Luettgert
  2006-06-24  7:13 ` Krzysztof Oledzki
@ 2006-06-24 12:26 ` Patrick McHardy
  2006-06-24 13:51   ` [PATCH] 2.6.17 API changes for ROUTE, u32, set Torsten Luettgert
  1 sibling, 1 reply; 5+ messages in thread
From: Patrick McHardy @ 2006-06-24 12:26 UTC (permalink / raw)
  To: Torsten Luettgert; +Cc: netfilter-devel

Torsten Luettgert wrote:
> Hi list,
> 
> I noticed the match/target API changed a bit in 2.6.17,
> so a bunch of code in patch-o-matic-ng needs updates.
> I fixed ipp2p, ROUTE, time, and u32 (it's quite trivial).
> 
> I'd like to submit the patches (and thus work against the
> "bit-rot" we all hate). Problem is, they are quite clumsy -
> the correct way IMHO is to copy the latest kernel directory
> (normally linux-2.6/) to linux-2.6.17 and then fix that,
> so 2.6.16 and older kernels still work, too. So you can't
> see what is happening in the patches, they just create 99%
> identical copies of the old files.
> 
> Patrick, I guess you're the one to ask - would you like
> those patches, and in what format?

Sure, just send them along as normal diffs. But please no new
directories, we decided to keep only a single version of things
in pomng that runs with the latest kernel.

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

* [PATCH] 2.6.17 API changes for ROUTE, u32, set
  2006-06-24 12:26 ` concerning p-o-m fixes for 2.6.17 API change Patrick McHardy
@ 2006-06-24 13:51   ` Torsten Luettgert
  0 siblings, 0 replies; 5+ messages in thread
From: Torsten Luettgert @ 2006-06-24 13:51 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: netfilter-devel

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

On Sa, 2006-06-24 at 14:26 +0200, Patrick McHardy wrote:
> Sure, just send them along as normal diffs. But please no new
> directories, we decided to keep only a single version of things
> in pomng that runs with the latest kernel.

Here are the patches for ROUTE, u32, and set.

Regards,
Torsten


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

Index: ROUTE/linux-2.6/net/ipv4/netfilter/ipt_ROUTE.c
===================================================================
--- ROUTE/linux-2.6/net/ipv4/netfilter/ipt_ROUTE.c	(revision 6631)
+++ ROUTE/linux-2.6/net/ipv4/netfilter/ipt_ROUTE.c	(working copy)
@@ -280,6 +280,7 @@
 				     const struct net_device *in,
 				     const struct net_device *out,
 				     unsigned int hooknum,
+				     const struct xt_target *target,
 				     const void *targinfo,
 				     void *userinfo)
 {
@@ -401,6 +402,7 @@
 
 static int ipt_route_checkentry(const char *tablename,
 				const void *e,
+				const struct xt_target *target,
 				void *targinfo,
 				unsigned int targinfosize,
 				unsigned int hook_mask)

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

Index: set/linux-2.6/net/ipv4/netfilter/ipt_SET.c
===================================================================
--- set/linux-2.6/net/ipv4/netfilter/ipt_SET.c	(revision 6631)
+++ set/linux-2.6/net/ipv4/netfilter/ipt_SET.c	(working copy)
@@ -29,6 +29,7 @@
        const struct net_device *in,
        const struct net_device *out,
        unsigned int hooknum,
+       const struct xt_target *target,
        const void *targinfo,
        void *userinfo)
 {
@@ -48,7 +49,8 @@
 
 static int
 checkentry(const char *tablename,
-	   const struct ipt_entry *e,
+	   const void *e,
+	   const struct xt_target *target,
 	   void *targinfo,
 	   unsigned int targinfosize, unsigned int hook_mask)
 {
@@ -87,7 +89,9 @@
 	return 1;
 }
 
-static void destroy(void *targetinfo, unsigned int targetsize)
+static void destroy(const struct xt_target *target,
+                    void *targetinfo,
+                    unsigned int targetsize)
 {
 	struct ipt_set_info_target *info = targetinfo;
 
Index: set/linux-2.6/net/ipv4/netfilter/ipt_set.c
===================================================================
--- set/linux-2.6/net/ipv4/netfilter/ipt_set.c	(revision 6631)
+++ set/linux-2.6/net/ipv4/netfilter/ipt_set.c	(working copy)
@@ -32,8 +32,10 @@
 match(const struct sk_buff *skb,
       const struct net_device *in,
       const struct net_device *out,
+      const struct xt_match *match,
       const void *matchinfo,
       int offset,
+      unsigned int protoff,
       int *hotdrop)
 {
 	const struct ipt_set_info_match *info = matchinfo;
@@ -45,7 +47,8 @@
 
 static int
 checkentry(const char *tablename,
-	   const struct ipt_ip *ip,
+	   const void *ip,
+	   const struct xt_match *match,
 	   void *matchinfo,
 	   unsigned int matchsize,
 	   unsigned int hook_mask)
@@ -74,7 +77,9 @@
 	return 1;
 }
 
-static void destroy(void *matchinfo, unsigned int matchsize)
+static void destroy(const struct xt_match *match,
+                    void *matchinfo,
+                    unsigned int matchsize)
 {
 	struct ipt_set_info_match *info = matchinfo;
 

[-- Attachment #4: u32.patch --]
[-- Type: text/x-patch, Size: 723 bytes --]

Index: u32/linux-2.6/net/ipv4/netfilter/ipt_u32.c
===================================================================
--- u32/linux-2.6/net/ipv4/netfilter/ipt_u32.c	(revision 6631)
+++ u32/linux-2.6/net/ipv4/netfilter/ipt_u32.c	(working copy)
@@ -120,6 +120,7 @@
 match(const struct sk_buff *skb,
       const struct net_device *in,
       const struct net_device *out,
+      const struct xt_match *match,
       const void *matchinfo,
       int offset,
       unsigned int protoff,
@@ -203,6 +204,7 @@
 static int
 checkentry(const char *tablename,
            const void *ip,
+           const struct xt_match *match,
            void *matchinfo,
            unsigned int matchsize,
            unsigned int hook_mask)

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

* [PATCH] 2.6.17 API changes for ipp2p, time
  2006-06-24  7:13 ` Krzysztof Oledzki
@ 2006-06-24 13:51   ` Torsten Luettgert
  0 siblings, 0 replies; 5+ messages in thread
From: Torsten Luettgert @ 2006-06-24 13:51 UTC (permalink / raw)
  To: Krzysztof Oledzki; +Cc: netfilter-devel

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

On Sa, 2006-06-24 at 09:13 +0200, Krzysztof Oledzki wrote:
> 
> So, please send ipp2p and time (with CC to me) 
> and patches that only corrects API in the "linux-2.6" directory .

Ok, here you are...

Regards,
Torsten Lüttgert


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

Index: ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c
===================================================================
--- ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c	(revision 6631)
+++ ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c	(working copy)
@@ -728,6 +728,7 @@
 match(const struct sk_buff *skb,
       const struct net_device *in,
       const struct net_device *out,
+      const struct xt_match *match,
       const void *matchinfo,
       int offset,
       unsigned int protoff,
@@ -811,7 +812,8 @@
 
 static int
 checkentry(const char *tablename,
-            const void *ip,
+	    const void *ip,
+	    const struct xt_match *match,
 	    void *matchinfo,
 	    unsigned int matchsize,
 	    unsigned int hook_mask)

[-- Attachment #3: time.patch --]
[-- Type: text/x-patch, Size: 725 bytes --]

Index: time/linux-2.6/net/ipv4/netfilter/ipt_time.c
===================================================================
--- time/linux-2.6/net/ipv4/netfilter/ipt_time.c	(revision 6631)
+++ time/linux-2.6/net/ipv4/netfilter/ipt_time.c	(working copy)
@@ -46,6 +46,7 @@
 match(const struct sk_buff *skb,
       const struct net_device *in,
       const struct net_device *out,
+      const struct xt_match *match,
       const void *matchinfo,
       int offset,
       unsigned int protoff,
@@ -83,6 +84,7 @@
 static int
 checkentry(const char *tablename,
            const void *ip,
+           const struct xt_match *match,
            void *matchinfo,
            unsigned int matchsize,
            unsigned int hook_mask)

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

end of thread, other threads:[~2006-06-24 13:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-23 20:58 concerning p-o-m fixes for 2.6.17 API change Torsten Luettgert
2006-06-24  7:13 ` Krzysztof Oledzki
2006-06-24 13:51   ` [PATCH] 2.6.17 API changes for ipp2p, time Torsten Luettgert
2006-06-24 12:26 ` concerning p-o-m fixes for 2.6.17 API change Patrick McHardy
2006-06-24 13:51   ` [PATCH] 2.6.17 API changes for ROUTE, u32, set Torsten Luettgert

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.