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_pkttype.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'extensions/libxt_pkttype.c') diff --git a/extensions/libxt_pkttype.c b/extensions/libxt_pkttype.c index f572e831..55edf279 100644 --- a/extensions/libxt_pkttype.c +++ b/extensions/libxt_pkttype.c @@ -127,26 +127,26 @@ static const struct pkttypes_xlate supported_types_xlate[] = { }; static void print_pkttype_xlate(const struct xt_pkttype_info *info, - struct xt_buf *buf) + struct xt_xlate *xl) { unsigned int i; for (i = 0; i < ARRAY_SIZE(supported_types_xlate); ++i) { if (supported_types_xlate[i].pkttype == info->pkttype) { - xt_buf_add(buf, "%s ", supported_types_xlate[i].name); + xt_xlate_add(xl, "%s ", supported_types_xlate[i].name); return; } } - xt_buf_add(buf, "%d", info->pkttype); + xt_xlate_add(xl, "%d", info->pkttype); } static int pkttype_xlate(const struct xt_entry_match *match, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct xt_pkttype_info *info = (const void *)match->data; - xt_buf_add(buf, "pkttype%s ", info->invert ? " !=" : ""); - print_pkttype_xlate(info, buf); + xt_xlate_add(xl, "pkttype%s ", info->invert ? " !=" : ""); + print_pkttype_xlate(info, xl); return 1; } -- cgit v1.2.3