summaryrefslogtreecommitdiffstats
path: root/src/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/table.c')
-rw-r--r--src/table.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/table.c b/src/table.c
index 3e8d4c9..c33f01c 100644
--- a/src/table.c
+++ b/src/table.c
@@ -49,6 +49,12 @@ void nft_table_free(struct nft_table *t)
}
EXPORT_SYMBOL(nft_table_free);
+bool nft_table_attr_is_set(struct nft_table *t, uint16_t attr)
+{
+ return t->flags & (1 << attr);
+}
+EXPORT_SYMBOL(nft_table_attr_is_set);
+
void nft_table_attr_unset(struct nft_table *t, uint16_t attr)
{
switch (attr) {