summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/datatype.h3
-rw-r--r--include/statement.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/include/datatype.h b/include/datatype.h
index ebafa655..07fedce8 100644
--- a/include/datatype.h
+++ b/include/datatype.h
@@ -239,4 +239,7 @@ extern struct error_record *rate_parse(const struct location *loc,
const char *str, uint64_t *rate,
uint64_t *unit);
+extern struct error_record *data_unit_parse(const struct location *loc,
+ const char *str, uint64_t *rate);
+
#endif /* NFTABLES_DATATYPE_H */
diff --git a/include/statement.h b/include/statement.h
index d2d0852e..bead0a6f 100644
--- a/include/statement.h
+++ b/include/statement.h
@@ -52,6 +52,7 @@ struct limit_stmt {
uint64_t rate;
uint64_t unit;
enum nft_limit_type type;
+ uint32_t burst;
};
extern struct stmt *limit_stmt_alloc(const struct location *loc);