diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/expression.h | 2 | ||||
-rw-r--r-- | include/statement.h | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/include/expression.h b/include/expression.h index 87c39e5d..35934827 100644 --- a/include/expression.h +++ b/include/expression.h @@ -184,6 +184,7 @@ const struct expr_ops *expr_ops_by_type(enum expr_types etype); * @EXPR_F_PROTOCOL: expressions describes upper layer protocol * @EXPR_F_INTERVAL_END: set member ends an open interval * @EXPR_F_BOOLEAN: expression is boolean (set by relational expr on LHS) + * @EXPR_F_INTERVAL: expression describes a interval */ enum expr_flags { EXPR_F_CONSTANT = 0x1, @@ -191,6 +192,7 @@ enum expr_flags { EXPR_F_PROTOCOL = 0x4, EXPR_F_INTERVAL_END = 0x8, EXPR_F_BOOLEAN = 0x10, + EXPR_F_INTERVAL = 0x20, }; #include <payload.h> diff --git a/include/statement.h b/include/statement.h index 8fb459ca..8427f47e 100644 --- a/include/statement.h +++ b/include/statement.h @@ -119,6 +119,10 @@ enum nft_nat_etypes { extern const char *nat_etype2str(enum nft_nat_etypes type); +enum { + STMT_NAT_F_INTERVAL = (1 << 0), +}; + struct nat_stmt { enum nft_nat_etypes type; struct expr *addr; @@ -126,6 +130,7 @@ struct nat_stmt { uint32_t flags; uint8_t family; bool ipportmap; + uint32_t type_flags; }; extern struct stmt *nat_stmt_alloc(const struct location *loc, |