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 /include/xtables.h | |
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 'include/xtables.h')
-rw-r--r-- | include/xtables.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/xtables.h b/include/xtables.h index 175ae50b..82aa2bbe 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -205,7 +205,7 @@ enum xtables_ext_flags { XTABLES_EXT_ALIAS = 1 << 0, }; -struct xt_buf; +struct xt_xlate; /* Include file for additions: new matches and targets. */ struct xtables_match @@ -272,7 +272,7 @@ struct xtables_match const struct xt_option_entry *x6_options; /* Translate iptables to nft */ - int (*xlate)(const struct xt_entry_match *match, struct xt_buf *buf, + int (*xlate)(const struct xt_entry_match *match, struct xt_xlate *xl, int numeric); /* Size of per-extension instance extra "global" scratch space */ @@ -353,7 +353,7 @@ struct xtables_target const struct xt_option_entry *x6_options; /* Translate iptables to nft */ - int (*xlate)(const struct xt_entry_target *target, struct xt_buf *buf, + int (*xlate)(const struct xt_entry_target *target, struct xt_xlate *xl, int numeric); size_t udata_size; @@ -569,11 +569,11 @@ extern void xtables_lmap_free(struct xtables_lmap *); extern int xtables_lmap_name2id(const struct xtables_lmap *, const char *); extern const char *xtables_lmap_id2name(const struct xtables_lmap *, int); -/* generic buffer */ -struct xt_buf *xt_buf_alloc(int size); -void xt_buf_free(struct xt_buf *buf); -void xt_buf_add(struct xt_buf *buf, const char *fmt, ...); -const char *xt_buf_get(struct xt_buf *buf); +/* xlate infrastructure */ +struct xt_xlate *xt_xlate_alloc(int size); +void xt_xlate_free(struct xt_xlate *xl); +void xt_xlate_add(struct xt_xlate *xl, const char *fmt, ...); +const char *xt_xlate_get(struct xt_xlate *xl); #ifdef XTABLES_INTERNAL |