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/libipt_REJECT.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/libipt_REJECT.c')
-rw-r--r-- | extensions/libipt_REJECT.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libipt_REJECT.c b/extensions/libipt_REJECT.c index dd4ac629..56fc3460 100644 --- a/extensions/libipt_REJECT.c +++ b/extensions/libipt_REJECT.c @@ -160,7 +160,7 @@ static const struct reject_names_xlate reject_table_xlate[] = { }; static int REJECT_xlate(const struct xt_entry_target *target, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct ipt_reject_info *reject = (const struct ipt_reject_info *)target->data; @@ -172,10 +172,10 @@ static int REJECT_xlate(const struct xt_entry_target *target, } if (reject->with == IPT_TCP_RESET) - xt_buf_add(buf, "reject with %s", + xt_xlate_add(xl, "reject with %s", reject_table_xlate[i].name); else - xt_buf_add(buf, "reject with icmp type %s", + xt_xlate_add(xl, "reject with icmp type %s", reject_table_xlate[i].name); return 1; |