summaryrefslogtreecommitdiffstats
path: root/extensions/libipt_ttl.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/libipt_ttl.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/libipt_ttl.c')
-rw-r--r--extensions/libipt_ttl.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/libipt_ttl.c b/extensions/libipt_ttl.c
index c952502d..bd19cd2c 100644
--- a/extensions/libipt_ttl.c
+++ b/extensions/libipt_ttl.c
@@ -101,30 +101,30 @@ static void ttl_save(const void *ip, const struct xt_entry_match *match)
}
static int ttl_xlate(const struct xt_entry_match *match,
- struct xt_buf *buf, int numeric)
+ struct xt_xlate *xl, int numeric)
{
const struct ipt_ttl_info *info =
(struct ipt_ttl_info *) match->data;
switch (info->mode) {
case IPT_TTL_EQ:
- xt_buf_add(buf, "ip ttl");
+ xt_xlate_add(xl, "ip ttl");
break;
case IPT_TTL_NE:
- xt_buf_add(buf, "ip ttl !=");
+ xt_xlate_add(xl, "ip ttl !=");
break;
case IPT_TTL_LT:
- xt_buf_add(buf, "ip ttl lt");
+ xt_xlate_add(xl, "ip ttl lt");
break;
case IPT_TTL_GT:
- xt_buf_add(buf, "ip ttl gt");
+ xt_xlate_add(xl, "ip ttl gt");
break;
default:
/* Should not happen. */
break;
}
- xt_buf_add(buf, " %u ", info->ttl);
+ xt_xlate_add(xl, " %u ", info->ttl);
return 1;
}