path: root/include
diff options
authorManuel Messner <>2017-02-07 03:14:11 +0100
committerFlorian Westphal <>2017-02-12 15:34:47 +0100
commit9574c263569f477114d7885ebcf5af8af6411582 (patch)
tree42d1d91d4e40470f60021b97aaaeffc2a61ae934 /include
parenta0cecb3ea474ad24adefcc388267684f2fddd69d (diff)
exthdr: prepare exthdr_gen_dependency for tcp support
currently exthdr always needs ipv6 dependency (i.e. link layer), but with upcomming TCP option matching we also need to include TCP at the network layer. This patch prepares this change by adding two parameters to exthdr_gen_dependency. Signed-off-by: Manuel Messner <> Signed-off-by: Florian Westphal <>
Diffstat (limited to 'include')
1 files changed, 2 insertions, 1 deletions
diff --git a/include/payload.h b/include/payload.h
index bda31886..5952b24f 100644
--- a/include/payload.h
+++ b/include/payload.h
@@ -16,7 +16,8 @@ struct stmt;
extern int payload_gen_dependency(struct eval_ctx *ctx, const struct expr *expr,
struct stmt **res);
extern int exthdr_gen_dependency(struct eval_ctx *ctx, const struct expr *expr,
- struct stmt **res);
+ const struct proto_desc *dependency,
+ enum proto_bases pb, struct stmt **res);
* struct payload_dep_ctx - payload protocol dependency tracking