path: root/include
diff options
authorShivani Bhardwaj <>2016-02-24 01:19:34 +0530
committerPablo Neira Ayuso <>2016-02-29 13:32:48 +0100
commita9a599ab675b8feb942355a24934901a9adcef1b (patch)
tree872d0db62e83241488d4742e5a3760ae11e05869 /include
parent3bc0951c107c5da741a330ba5df49a2c823f5e5d (diff)
comment: Add translation to nft
Add translation for match comment to nftables. This patch also adds the relevant infrastructure for carrying out the translation. Example: $ sudo iptables-translate -A INPUT -s -m comment --comment "A privatized IP block" nft add rule ip filter INPUT ip saddr counter comment \"A privatized IP block\" Signed-off-by: Shivani Bhardwaj <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/xtables.h b/include/xtables.h
index 6fd3bdfc..e219c9f9 100644
--- a/include/xtables.h
+++ b/include/xtables.h
@@ -574,6 +574,7 @@ 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_comment(struct xt_xlate *xl);
const char *xt_xlate_get(struct xt_xlate *xl);