[NETFILTER] ip[6]t_policy: Fix compilation warnings
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 17 Jan 2006 10:26:34 +0000 (02:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jan 2006 10:26:34 +0000 (02:26 -0800)
ip[6]t_policy argument conversion slipped when merging with x_tables

Signed-off-by: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/ipt_policy.c
net/ipv6/netfilter/ip6t_policy.c

index 709debcc69c92d2ee1403e8ad86cb61a2e946328..18ca8258a1c597c170fd718f5c8556a1eaefb382 100644 (file)
@@ -95,7 +95,10 @@ match_policy_out(const struct sk_buff *skb, const struct ipt_policy_info *info)
 static int match(const struct sk_buff *skb,
                  const struct net_device *in,
                  const struct net_device *out,
-                 const void *matchinfo, int offset, int *hotdrop)
+                 const void *matchinfo,
+                 int offset,
+                 unsigned int protoff,
+                 int *hotdrop)
 {
        const struct ipt_policy_info *info = matchinfo;
        int ret;
@@ -113,7 +116,7 @@ static int match(const struct sk_buff *skb,
        return ret;
 }
 
-static int checkentry(const char *tablename, const struct ipt_ip *ip,
+static int checkentry(const char *tablename, const void *ip_void,
                       void *matchinfo, unsigned int matchsize,
                       unsigned int hook_mask)
 {
index 13fedad48c1d76a549aa4c467d75b571e7002a76..afe1cc4c18a5bffc734d6011b1dfddd395007158 100644 (file)
@@ -118,7 +118,7 @@ static int match(const struct sk_buff *skb,
        return ret;
 }
 
-static int checkentry(const char *tablename, const struct ip6t_ip6 *ip,
+static int checkentry(const char *tablename, const void *ip_void,
                       void *matchinfo, unsigned int matchsize,
                       unsigned int hook_mask)
 {