path: root/include/payload.h
diff options
authorPablo Neira Ayuso <>2018-02-14 16:26:31 +0100
committerPablo Neira Ayuso <>2018-02-15 16:29:32 +0100
commit3ddc637cc42cd0a854ea2e7232a855330bfe22e5 (patch)
tree5b0475f874fc50256776065ebb32d7a4cf770afb /include/payload.h
parentfb16c8b7f795e0dba5a2acea1b156a8796e75195 (diff)
src: pass family to payload_dependency_kill()
This context information is very relevant when deciding if a redundant dependency needs to be removed or not, specifically for the inet, bridge and netdev families. This new parameter is used by follow up patch entitled ("payload: add payload_may_dependency_kill()"). Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/payload.h')
1 files changed, 4 insertions, 3 deletions
diff --git a/include/payload.h b/include/payload.h
index 8e357aef..294ff270 100644
--- a/include/payload.h
+++ b/include/payload.h
@@ -41,11 +41,12 @@ extern void payload_dependency_store(struct payload_dep_ctx *ctx,
struct stmt *stmt,
enum proto_bases base);
extern void __payload_dependency_kill(struct payload_dep_ctx *ctx,
- enum proto_bases base);
+ enum proto_bases base,
+ unsigned int family);
extern void payload_dependency_kill(struct payload_dep_ctx *ctx,
- struct expr *expr);
+ struct expr *expr, unsigned int family);
extern void exthdr_dependency_kill(struct payload_dep_ctx *ctx,
- struct expr *expr);
+ struct expr *expr, unsigned int family);
extern bool payload_can_merge(const struct expr *e1, const struct expr *e2);
extern struct expr *payload_expr_join(const struct expr *e1,