From 6b60dc5be58a5781cacc4e6f238454d5e8421760 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 1 Feb 2016 19:24:38 +0100 Subject: extensions: rename xt_buf to xt_xlate Use a more generic name for this object to prepare the introduction of other translation specific fields. Signed-off-by: Pablo Neira Ayuso --- extensions/libip6t_REJECT.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extensions/libip6t_REJECT.c') diff --git a/extensions/libip6t_REJECT.c b/extensions/libip6t_REJECT.c index 3b8431c0..ad2a8ecc 100644 --- a/extensions/libip6t_REJECT.c +++ b/extensions/libip6t_REJECT.c @@ -140,7 +140,7 @@ static const struct reject_names_xlate reject_table_xlate[] = { }; static int REJECT_xlate(const struct xt_entry_target *target, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct ip6t_reject_info *reject = (const struct ip6t_reject_info *)target->data; @@ -150,9 +150,9 @@ static int REJECT_xlate(const struct xt_entry_target *target, if (reject_table_xlate[i].with == reject->with) break; if (reject->with == IP6T_TCP_RESET) - xt_buf_add(buf, "reject with %s", reject_table_xlate[i].name); + xt_xlate_add(xl, "reject with %s", reject_table_xlate[i].name); else - xt_buf_add(buf, "reject with icmpv6 type %s", + xt_xlate_add(xl, "reject with icmpv6 type %s", reject_table_xlate[i].name); return 1; -- cgit v1.2.3