From 1f229e4f83a651029e7cdc13e24a2827a6af25d2 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Sun, 24 Apr 2016 22:15:08 +0100 Subject: payload: add payload_is_stacked() Add payload_is_stacked() to determine whether a protocol expression match defines a stacked protocol on the same layer. Signed-off-by: Patrick McHardy --- include/payload.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/payload.h') diff --git a/include/payload.h b/include/payload.h index eb9ff17d..b180ff53 100644 --- a/include/payload.h +++ b/include/payload.h @@ -30,6 +30,8 @@ struct payload_dep_ctx { struct stmt *prev; }; +extern bool payload_is_stacked(const struct proto_desc *desc, + const struct expr *expr); extern void payload_dependency_store(struct payload_dep_ctx *ctx, struct stmt *stmt, enum proto_bases base); -- cgit v1.2.3