diff options
Diffstat (limited to 'include/rule.h')
-rw-r--r-- | include/rule.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h index e232b97a..90812255 100644 --- a/include/rule.h +++ b/include/rule.h @@ -700,6 +700,7 @@ struct cmd { enum cmd_obj obj; struct handle handle; uint32_t seqnum; + struct list_head collapse_list; union { void *data; struct expr *expr; @@ -728,6 +729,8 @@ extern struct cmd *cmd_alloc(enum cmd_ops op, enum cmd_obj obj, const struct handle *h, const struct location *loc, void *data); extern void nft_cmd_expand(struct cmd *cmd); +extern bool nft_cmd_collapse(struct list_head *cmds); +extern void nft_cmd_uncollapse(struct list_head *cmds); extern struct cmd *cmd_alloc_obj_ct(enum cmd_ops op, int type, const struct handle *h, const struct location *loc, struct obj *obj); |