diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-02-01 19:29:51 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2016-02-16 19:30:25 +0100 |
commit | e9855aaeaceafdb67f920000499882ec4f31e60c (patch) | |
tree | dc3f8b706bf170832e450fd1d99fd904b4d9d9ff /include | |
parent | 6b60dc5be58a5781cacc4e6f238454d5e8421760 (diff) |
xtables: add xt_xlate_add_comment()
This new function allows us to add comments to the nft rule. This
can be used to provide a translation for the comment match.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/xtables.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xtables.h b/include/xtables.h index 82aa2bbe..6fd3bdfc 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -573,6 +573,7 @@ extern const char *xtables_lmap_id2name(const struct xtables_lmap *, int); 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, ...); +void xt_xlate_add_comment(struct xt_xlate *xl, const char *comment); const char *xt_xlate_get(struct xt_xlate *xl); #ifdef XTABLES_INTERNAL |