path: root/include/payload.h
diff options
authorManuel Messner <>2017-02-07 03:14:14 +0100
committerFlorian Westphal <>2017-02-12 15:34:47 +0100
commit055e1d6d343cb6a39938d6660c3fc66f242c7e7f (patch)
treee76c14021c444aec58c8fb522edae8b3940e062a /include/payload.h
parentc17509c6d1948f28f8cda71fef79447ec273573d (diff)
payload: automatically kill dependencies for exthdr and tcpopt
This patch automatically removes the dependencies for exthdr and tcpopt. # nft add rule filter input tcp option maxseg kind 3 counter. # nft list table filter input Before: # ip protocol 6 tcp option maxseg kind 3 counter After: # tcp option maxseg kind 3 counter Thus allowing to write tests as follows: # tcp option maxseg kind 3;ok Signed-off-by: Manuel Messner <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'include/payload.h')
1 files changed, 2 insertions, 0 deletions
diff --git a/include/payload.h b/include/payload.h
index 5952b24f..a3d23095 100644
--- a/include/payload.h
+++ b/include/payload.h
@@ -42,6 +42,8 @@ extern void __payload_dependency_kill(struct payload_dep_ctx *ctx,
enum proto_bases base);
extern void payload_dependency_kill(struct payload_dep_ctx *ctx,
struct expr *expr);
+extern void exthdr_dependency_kill(struct payload_dep_ctx *ctx,
+ struct expr *expr);
extern bool payload_can_merge(const struct expr *e1, const struct expr *e2);
extern struct expr *payload_expr_join(const struct expr *e1,