summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_length.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2016-02-01 19:24:38 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2016-02-16 19:30:25 +0100
commit6b60dc5be58a5781cacc4e6f238454d5e8421760 (patch)
treebe23e91f26e5295c12cd69ee5091454345cfaa6b /extensions/libxt_length.c
parentca9a1a6a9f64ee5d94038abb451b27cc9581c81b (diff)
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 <pablo@netfilter.org>
Diffstat (limited to 'extensions/libxt_length.c')
-rw-r--r--extensions/libxt_length.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c
index 96dab0cf..00acae0e 100644
--- a/extensions/libxt_length.c
+++ b/extensions/libxt_length.c
@@ -57,15 +57,15 @@ static void length_save(const void *ip, const struct xt_entry_match *match)
}
static int length_xlate(const struct xt_entry_match *match,
- struct xt_buf *buf, int numeric)
+ struct xt_xlate *xl, int numeric)
{
const struct xt_length_info *info = (void *)match->data;
- xt_buf_add(buf, "meta length %s", info->invert ? "!= " : "");
+ xt_xlate_add(xl, "meta length %s", info->invert ? "!= " : "");
if (info->min == info->max)
- xt_buf_add(buf, "%u ", info->min);
+ xt_xlate_add(xl, "%u ", info->min);
else
- xt_buf_add(buf, "%u-%u ", info->min, info->max);
+ xt_xlate_add(xl, "%u-%u ", info->min, info->max);
return 1;
}