From 7a0992da44cfb6cab0ccd1beadcf326df8773552 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 24 Jul 2016 12:45:53 +0200 Subject: 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 --- extensions/libipt_REJECT.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions/libipt_REJECT.c') diff --git a/extensions/libipt_REJECT.c b/extensions/libipt_REJECT.c index c211da91..ba815bae 100644 --- a/extensions/libipt_REJECT.c +++ b/extensions/libipt_REJECT.c @@ -159,11 +159,11 @@ static const struct reject_names_xlate reject_table_xlate[] = { {"admin-prohibited", IPT_ICMP_ADMIN_PROHIBITED} }; -static int REJECT_xlate(const void *ip, const struct xt_entry_target *target, - struct xt_xlate *xl, int numeric) +static int REJECT_xlate(struct xt_xlate *xl, + const struct xt_xlate_tg_params *params) { const struct ipt_reject_info *reject = - (const struct ipt_reject_info *)target->data; + (const struct ipt_reject_info *)params->target->data; unsigned int i; for (i = 0; i < ARRAY_SIZE(reject_table_xlate); ++i) { -- cgit v1.2.3