[PATCH 7/7] ipt_u32 compile fix for 2.6.21
Jan Engelhardt
jengelh at linux01.gwdg.de
Sat Apr 7 20:50:33 CEST 2007
Fix compilation of ipt_u32.
Signed-off-by: Jan Engelhardt <jengelh at gmx.de>
Index: linux-2.6.21-rc5/net/ipv4/netfilter/ipt_u32.c
===================================================================
--- linux-2.6.21-rc5.orig/net/ipv4/netfilter/ipt_u32.c
+++ linux-2.6.21-rc5/net/ipv4/netfilter/ipt_u32.c
@@ -201,35 +201,22 @@ match(const struct sk_buff *skb,
return 1;
}
-static int
-checkentry(const char *tablename,
- const void *ip,
- const struct xt_match *match,
- void *matchinfo,
- unsigned int matchsize,
- unsigned int hook_mask)
-{
- if (matchsize != IPT_ALIGN(sizeof(struct ipt_u32)))
- return 0;
- 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,
.me = THIS_MODULE
};
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);
More information about the netfilter
mailing list