diff options
author | Patrick McHardy <kaber@trash.net> | 2016-04-24 22:15:08 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2016-04-24 22:15:08 +0100 |
commit | 1f229e4f83a651029e7cdc13e24a2827a6af25d2 (patch) | |
tree | 3a4500be3d9dd1ac9442c964339eec985da890c6 /include | |
parent | 3b219e5dd3a558228d67d97e0e2ac3e94c88df92 (diff) |
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 <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/payload.h | 2 |
1 files changed, 2 insertions, 0 deletions
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); |