summaryrefslogtreecommitdiffstats
path: root/extensions/libxt_pkttype.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_pkttype.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_pkttype.c')
-rw-r--r--extensions/libxt_pkttype.c12
1 files changed, 6 insertions, 6 deletions
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;
}