netfilter: xtables: move extension arguments into compound structure (2/6)
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / bridge / netfilter / ebt_ip.c
index c70ea39840b75160f611d36da1312b8f9c4d78a3..d771bbfbcbe603a5d40844cc947c016abd266152 100644 (file)
@@ -77,13 +77,10 @@ ebt_ip_mt(const struct sk_buff *skb, const struct xt_match_param *par)
        return true;
 }
 
-static bool
-ebt_ip_mt_check(const char *table, const void *entry,
-               const struct xt_match *match, void *data,
-               unsigned int hook_mask)
+static bool ebt_ip_mt_check(const struct xt_mtchk_param *par)
 {
-       const struct ebt_ip_info *info = data;
-       const struct ebt_entry *e = entry;
+       const struct ebt_ip_info *info = par->matchinfo;
+       const struct ebt_entry *e = par->entryinfo;
 
        if (e->ethproto != htons(ETH_P_IP) ||
           e->invflags & EBT_IPROTO)