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/libxt_connmark.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'extensions/libxt_connmark.c') diff --git a/extensions/libxt_connmark.c b/extensions/libxt_connmark.c index 087d4bf7..3d1926fd 100644 --- a/extensions/libxt_connmark.c +++ b/extensions/libxt_connmark.c @@ -124,18 +124,18 @@ connmark_mt_save(const void *ip, const struct xt_entry_match *match) } static void print_mark_xlate(unsigned int mark, unsigned int mask, - struct xt_buf *buf, uint32_t op) + struct xt_xlate *xl, uint32_t op) { if (mask != 0xffffffffU) - xt_buf_add(buf, " and 0x%x %s 0x%x ", mark, + xt_xlate_add(xl, " and 0x%x %s 0x%x ", mark, op == XT_OP_EQ ? "==" : "!=", mask); else - xt_buf_add(buf, " %s0x%x ", + xt_xlate_add(xl, " %s0x%x ", op == XT_OP_EQ ? "" : "!= ", mark); } static int connmark_xlate(const struct xt_entry_match *match, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct xt_connmark_info *info = (const void *)match->data; enum xt_op op = XT_OP_EQ; @@ -143,15 +143,15 @@ static int connmark_xlate(const struct xt_entry_match *match, if (info->invert) op = XT_OP_NEQ; - xt_buf_add(buf, "ct mark"); - print_mark_xlate(info->mark, info->mask, buf, op); + xt_xlate_add(xl, "ct mark"); + print_mark_xlate(info->mark, info->mask, xl, op); return 1; } static int connmark_mt_xlate(const struct xt_entry_match *match, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct xt_connmark_mtinfo1 *info = (const void *)match->data; enum xt_op op = XT_OP_EQ; @@ -159,8 +159,8 @@ connmark_mt_xlate(const struct xt_entry_match *match, if (info->invert) op = XT_OP_NEQ; - xt_buf_add(buf, "ct mark"); - print_mark_xlate(info->mark, info->mask, buf, op); + xt_xlate_add(xl, "ct mark"); + print_mark_xlate(info->mark, info->mask, xl, op); return 1; } -- cgit v1.2.3