summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-12-08 23:51:59 +0100
committerFlorian Westphal <fw@strlen.de>2020-12-09 18:33:53 +0100
commitd0f3b9eaab8d77eed94ec74e3c91218ca76da34d (patch)
tree56268f5c1a675124662abdc392ea709aed24cbe8 /include
parenta45b2bea62ee73f0c30970f0e5fe8a568b844fb8 (diff)
payload: auto-remove simple icmp/icmpv6 dependency expressions
Instead of: icmpv6 type packet-too-big icmpv6 mtu 1280 display just icmpv6 mtu 1280 The dependency added for id/sequence is still kept, its handled by a anon set instead to cover both the echo 'request' and 'reply' cases. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'include')
-rw-r--r--include/payload.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/payload.h b/include/payload.h
index 7bbb19b9..8bc3fb9a 100644
--- a/include/payload.h
+++ b/include/payload.h
@@ -26,11 +26,13 @@ extern int exthdr_gen_dependency(struct eval_ctx *ctx, const struct expr *expr,
* struct payload_dep_ctx - payload protocol dependency tracking
*
* @pbase: protocol base of last dependency match
+ * @icmp_type: extra info for icmp(6) decoding
* @pdep: last dependency match
* @prev: previous statement
*/
struct payload_dep_ctx {
- enum proto_bases pbase;
+ enum proto_bases pbase:8;
+ uint8_t icmp_type;
struct stmt *pdep;
struct stmt *prev;
};