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_ah.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_ah.c')
-rw-r--r-- | extensions/libipt_ah.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/libipt_ah.c b/extensions/libipt_ah.c index 8973e49c..a7d11936 100644 --- a/extensions/libipt_ah.c +++ b/extensions/libipt_ah.c @@ -93,18 +93,18 @@ static void ah_save(const void *ip, const struct xt_entry_match *match) } static int ah_xlate(const struct xt_entry_match *match, - struct xt_buf *buf, int numeric) + struct xt_xlate *xl, int numeric) { const struct ipt_ah *ahinfo = (struct ipt_ah *)match->data; if (!(ahinfo->spis[0] == 0 && ahinfo->spis[1] == 0xFFFFFFFF)) { - xt_buf_add(buf, "ah spi%s ", + xt_xlate_add(xl, "ah spi%s ", (ahinfo->invflags & IPT_AH_INV_SPI) ? " !=" : ""); if (ahinfo->spis[0] != ahinfo->spis[1]) - xt_buf_add(buf, "%u-%u ", ahinfo->spis[0], + xt_xlate_add(xl, "%u-%u ", ahinfo->spis[0], ahinfo->spis[1]); else - xt_buf_add(buf, "%u ", ahinfo->spis[0]); + xt_xlate_add(xl, "%u ", ahinfo->spis[0]); } return 1; |