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_REDIRECT.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_REDIRECT.c')
-rw-r--r-- | extensions/libipt_REDIRECT.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libipt_REDIRECT.c b/extensions/libipt_REDIRECT.c index 2e5b33dd..68efe96f 100644 --- a/extensions/libipt_REDIRECT.c +++ b/extensions/libipt_REDIRECT.c @@ -136,18 +136,18 @@ static void REDIRECT_save(const void *ip, const struct xt_entry_target *target) } static int REDIRECT_xlate(const struct xt_entry_target *target, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct nf_nat_ipv4_multi_range_compat *mr = (const void *)target->data; const struct nf_nat_ipv4_range *r = &mr->range[0]; if (r->flags & NF_NAT_RANGE_PROTO_SPECIFIED) { - xt_buf_add(buf, "redirect to %hu", ntohs(r->min.tcp.port)); + xt_xlate_add(xl, "redirect to %hu", ntohs(r->min.tcp.port)); if (r->max.tcp.port != r->min.tcp.port) - xt_buf_add(buf, "-%hu ", ntohs(r->max.tcp.port)); + xt_xlate_add(xl, "-%hu ", ntohs(r->max.tcp.port)); if (mr->range[0].flags & NF_NAT_RANGE_PROTO_RANDOM) - xt_buf_add(buf, " random "); + xt_xlate_add(xl, " random "); } return 1; |