path: root/include/statement.h
diff options
authorPablo Neira Ayuso <>2017-11-23 15:14:01 +0100
committerPablo Neira Ayuso <>2017-11-24 15:03:28 +0100
commit48661c54357aea271bf87ab2b6ef907eafc97e9a (patch)
tree9222b459849f9db7332b71866df33225d9b12920 /include/statement.h
parent932847e0c3df8f6ee3dc4478f1ef0728926d9544 (diff)
src: deprecate "flow table" syntax, replace it by "meter"
According to bugzilla 1137: "flow tables" should not be syntactically unique. "Flow tables are always named, but they don't conform to the way sets, maps, and dictionaries work in terms of "add" and "delete" and all that. They are also "flow tables" instead of one word like "flows" or "throttle" or something. It seems weird to just have these break the syntactic expectations." Personally, I never liked the reference to "table" since we have very specific semantics in terms of what a "table" is netfilter for long time. This patch promotes "meter" as the new keyword. The former syntax is still accepted for a while, just to reduce chances of breaking things. At some point the former syntax will just be removed. Closes: Signed-off-by: Pablo Neira Ayuso <> Acked-by: Arturo Borrero Gonzalez <>
Diffstat (limited to 'include/statement.h')
1 files changed, 6 insertions, 6 deletions
diff --git a/include/statement.h b/include/statement.h
index 2f702c3c..23a551b6 100644
--- a/include/statement.h
+++ b/include/statement.h
@@ -165,14 +165,14 @@ struct set_stmt {
extern struct stmt *set_stmt_alloc(const struct location *loc);
-struct flow_stmt {
+struct meter_stmt {
struct expr *set;
struct expr *key;
struct stmt *stmt;
- const char *table;
+ const char *name;
-extern struct stmt *flow_stmt_alloc(const struct location *loc);
+extern struct stmt *meter_stmt_alloc(const struct location *loc);
* enum nft_xt_type - xtables statement types
@@ -209,7 +209,7 @@ struct xt_stmt {
* @STMT_INVALID: uninitialised
* @STMT_EXPRESSION: expression statement (relational)
* @STMT_VERDICT: verdict statement
- * @STMT_FLOW: flow statement
+ * @STMT_METER: meter statement
* @STMT_COUNTER: counters
* @STMT_PAYLOAD: payload statement
* @STMT_META: meta statement
@@ -234,7 +234,7 @@ enum stmt_types {
@@ -296,7 +296,7 @@ struct stmt {
union {
struct expr *expr;
struct exthdr_stmt exthdr;
- struct flow_stmt flow;
+ struct meter_stmt meter;
struct counter_stmt counter;
struct payload_stmt payload;
struct meta_stmt meta;