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_REDIRECT.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'extensions/libip6t_REDIRECT.c') diff --git a/extensions/libip6t_REDIRECT.c b/extensions/libip6t_REDIRECT.c index d907d94c..fc4a4d84 100644 --- a/extensions/libip6t_REDIRECT.c +++ b/extensions/libip6t_REDIRECT.c @@ -133,18 +133,18 @@ static void REDIRECT_save(const void *ip, const struct xt_entry_target *target) } static int REDIRECT_xlate(const struct xt_entry_target *target, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct nf_nat_range *range = (const void *)target->data; if (range->flags & NF_NAT_RANGE_PROTO_SPECIFIED) { - xt_buf_add(buf, "redirect to %hu", + xt_xlate_add(xl, "redirect to %hu", ntohs(range->min_proto.tcp.port)); if (range->max_proto.tcp.port != range->min_proto.tcp.port) - xt_buf_add(buf, "-%hu ", + xt_xlate_add(xl, "-%hu ", ntohs(range->max_proto.tcp.port)); if (range->flags & NF_NAT_RANGE_PROTO_RANDOM) - xt_buf_add(buf, " random "); + xt_xlate_add(xl, " random "); } return 1; -- cgit v1.2.3