summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/owner.h6
-rw-r--r--include/rule.h4
2 files changed, 9 insertions, 1 deletions
diff --git a/include/owner.h b/include/owner.h
new file mode 100644
index 00000000..85d821cc
--- /dev/null
+++ b/include/owner.h
@@ -0,0 +1,6 @@
+#ifndef _NFT_OWNER_H_
+#define _NFT_OWNER_H_
+
+char *get_progname(uint32_t portid);
+
+#endif
diff --git a/include/rule.h b/include/rule.h
index 87b6828e..523435f6 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -131,8 +131,9 @@ struct symbol *symbol_get(const struct scope *scope, const char *identifier);
enum table_flags {
TABLE_F_DORMANT = (1 << 0),
+ TABLE_F_OWNER = (1 << 1),
};
-#define TABLE_FLAGS_MAX 1
+#define TABLE_FLAGS_MAX 2
const char *table_flag_name(uint32_t flag);
@@ -162,6 +163,7 @@ struct table {
struct list_head chain_bindings;
enum table_flags flags;
unsigned int refcnt;
+ uint32_t owner;
const char *comment;
};