From 702ac2b72c0e8fb570ef30dd942472bf5d4146b8 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado Gomez" Date: Mon, 21 Sep 2020 15:28:23 +0200 Subject: src: add comment support for chains This patch enables the user to specify a comment when adding a chain. Relies on kernel space supporting userdata for chains. > nft add table ip filter > nft add chain ip filter input { comment "test"\; type filter hook input priority 0\; policy accept\; } > list ruleset table ip filter { chain input { comment "test" type filter hook input priority filter; policy accept; } } Signed-off-by: Jose M. Guisado Gomez Signed-off-by: Pablo Neira Ayuso --- include/rule.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/rule.h') diff --git a/include/rule.h b/include/rule.h index 837005b1..ffe8daab 100644 --- a/include/rule.h +++ b/include/rule.h @@ -225,6 +225,7 @@ struct chain { struct location location; unsigned int refcnt; uint32_t flags; + const char *comment; struct { struct location loc; struct prio_spec priority; -- cgit v1.2.3