diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-02-01 19:24:38 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-02-16 19:30:25 +0100 |
commit | 6b60dc5be58a5781cacc4e6f238454d5e8421760 (patch) | |
tree | be23e91f26e5295c12cd69ee5091454345cfaa6b /extensions/libxt_NFLOG.c | |
parent | ca9a1a6a9f64ee5d94038abb451b27cc9581c81b (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_NFLOG.c')
-rw-r--r-- | extensions/libxt_NFLOG.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/extensions/libxt_NFLOG.c b/extensions/libxt_NFLOG.c index 4f9024ab..e31a3c4b 100644 --- a/extensions/libxt_NFLOG.c +++ b/extensions/libxt_NFLOG.c @@ -87,24 +87,24 @@ static void NFLOG_save(const void *ip, const struct xt_entry_target *target) } static void nflog_print_xlate(const struct xt_nflog_info *info, - struct xt_buf *buf) + struct xt_xlate *xl) { - xt_buf_add(buf, "log "); + xt_xlate_add(xl, "log "); if (info->prefix[0] != '\0') - xt_buf_add(buf, "prefix \\\"%s\\\" ", info->prefix); + xt_xlate_add(xl, "prefix \\\"%s\\\" ", info->prefix); if (info->len) - xt_buf_add(buf, "snaplen %u ", info->len); + xt_xlate_add(xl, "snaplen %u ", info->len); if (info->threshold != XT_NFLOG_DEFAULT_THRESHOLD) - xt_buf_add(buf, "queue-threshold %u ", info->threshold); - xt_buf_add(buf, "group %u ", info->group); + xt_xlate_add(xl, "queue-threshold %u ", info->threshold); + xt_xlate_add(xl, "group %u ", info->group); } static int NFLOG_xlate(const struct xt_entry_target *target, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct xt_nflog_info *info = (struct xt_nflog_info *)target->data; - nflog_print_xlate(info, buf); + nflog_print_xlate(info, xl); return 1; } |