path: root/include/payload.h
diff options
authorFlorian Westphal <>2016-08-01 17:11:41 +0200
committerFlorian Westphal <>2016-08-01 17:11:41 +0200
commitca6fd0a94fc2d2c6d662b76c22ffaa4f3ffc7a1f (patch)
tree9f781495b0c96599ac4cb3c886013f1ed607d066 /include/payload.h
parenta0ed637e76da3fe44eb34eb2ab91d72be2365411 (diff)
payload: print base and raw values for unknown payloads
We currently print 'unknown' rather than the raw offset values for unrecognized header values. If its unknown, prefer to print payload @nh,0,16 set payload @nh,0,16 rather than 'unknown'. Also add a helper to check if payload expression has a description assigned to it. Signed-off-by: Florian Westphal <> Acked-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/payload.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/payload.h b/include/payload.h
index 37375c10..bda31886 100644
--- a/include/payload.h
+++ b/include/payload.h
@@ -31,6 +31,7 @@ struct payload_dep_ctx {
struct stmt *prev;
+extern bool payload_is_known(const struct expr *expr);
extern bool payload_is_stacked(const struct proto_desc *desc,
const struct expr *expr);
extern void payload_dependency_store(struct payload_dep_ctx *ctx,