]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
ipp2p: fix match function signature
authorJan Engelhardt <jengelh@computergmbh.de>
Wed, 26 Mar 2008 06:21:55 +0000 (07:21 +0100)
committerJan Engelhardt <jengelh@computergmbh.de>
Tue, 8 Apr 2008 18:34:04 +0000 (20:34 +0200)
extensions/xt_ipp2p.c

index 575792d8aa7cb01e4ed65643b4b53e55b907086f..79513ca41b501a3ee92cbb6ab093eb76740faa24 100644 (file)
@@ -761,10 +761,10 @@ static struct {
        {0},
 };
 
-static int
-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)
+static bool
+ipp2p_mt(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, bool *hotdrop)
 {
        const struct ipt_p2p_info *info = matchinfo;
        unsigned char  *haystack;
@@ -844,23 +844,24 @@ match(const struct sk_buff *skb, const struct net_device *in,
        }
 }
 
-static struct xt_match ipp2p_match = {
+static struct xt_match ipp2p_mt_reg __read_mostly = {
        .name       = "ipp2p",
+       .revision   = 0,
        .family     = AF_INET,
-       .match      = &match,
+       .match      = ipp2p_mt,
        .matchsize  = sizeof(struct ipt_p2p_info),
        .me         = THIS_MODULE,
 };
 
-static int __init init(void)
+static int __init ipp2p_mt_init(void)
 {
-       return xt_register_match(&ipp2p_match);
+       return xt_register_match(&ipp2p_mt_reg);
 }
 
-static void __exit fini(void)
+static void __exit ipp2p_mt_exit(void)
 {
-       xt_unregister_match(&ipp2p_match);
+       xt_unregister_match(&ipp2p_mt_reg);
 }
 
-module_init(init);
-module_exit(fini);
+module_init(ipp2p_mt_init);
+module_exit(ipp2p_mt_exit);