src: introduce struct xt_xlate_{mt,tg}_params

This structure is an extensible containers of parameters, so we don't
need to propagate interface updates in every extension file in case
we need to add new parameters in the future.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
diff --git a/extensions/libipt_icmp.c b/extensions/libipt_icmp.c
index 342659e..680a5b0 100644
--- a/extensions/libipt_icmp.c
+++ b/extensions/libipt_icmp.c
@@ -268,10 +268,10 @@
 	return 0;
 }
 
-static int icmp_xlate(const void *ip, const struct xt_entry_match *match,
-		      struct xt_xlate *xl, int numeric)
+static int icmp_xlate(struct xt_xlate *xl,
+		      const struct xt_xlate_mt_params *params)
 {
-	const struct ipt_icmp *info = (struct ipt_icmp *)match->data;
+	const struct ipt_icmp *info = (struct ipt_icmp *)params->match->data;
 
 	if (info->type != 0xFF) {
 		xt_xlate_add(xl, "icmp type%s ",