All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] Fix for u32 patchlet and kernel 2.6.21
@ 2007-04-26 12:14 Thomas Jarosch
  2007-04-26 14:53 ` Jan Engelhardt
  2007-04-26 15:22 ` Patrick McHardy
  0 siblings, 2 replies; 7+ messages in thread
From: Thomas Jarosch @ 2007-04-26 12:14 UTC (permalink / raw)
  To: netfilter-devel

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

Hello,

attached is a small patch to get the u32 patchlet
running again with kernel 2.6.21.

Cheers,
Thomas

[-- Attachment #2: pom-u32-fix-2.6.21.patch --]
[-- Type: text/x-diff, Size: 790 bytes --]

Signed-Off: Thomas Jarosch <thomas.jarosch@intra2net.com>

diff -u -p u32.old/ipt_u32.c u32/ipt_u32.c
--- u32.old/ipt_u32.c	Tue Aug  8 11:58:29 2006
+++ u32/ipt_u32.c	Thu Apr 26 13:41:54 2007
@@ -214,8 +214,9 @@ checkentry(const char *tablename,
 	return 1;
 }
 
-static struct ipt_match u32_match = { 
+static struct xt_match u32_match = { 
 	.name 		= "u32",
+	.family         = AF_INET,
 	.match		= &match,
 	.matchsize	= sizeof(struct ipt_u32),
 	.checkentry	= &checkentry,
@@ -224,12 +225,12 @@ static struct ipt_match u32_match = { 
 
 static int __init init(void)
 {
-	return ipt_register_match(&u32_match);
+	return xt_register_match(&u32_match);
 }
 
 static void __exit fini(void)
 {
-	ipt_unregister_match(&u32_match);
+	xt_unregister_match(&u32_match);
 }
 
 module_init(init);

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

end of thread, other threads:[~2007-04-26 23:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 12:14 [patch] Fix for u32 patchlet and kernel 2.6.21 Thomas Jarosch
2007-04-26 14:53 ` Jan Engelhardt
2007-04-26 15:16   ` Thomas Jarosch
2007-04-26 15:22     ` Patrick McHardy
2007-04-26 18:40       ` Jan Engelhardt
2007-04-26 23:05         ` Patrick McHardy
2007-04-26 15:22 ` 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.