From d0f3b9eaab8d77eed94ec74e3c91218ca76da34d Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 8 Dec 2020 23:51:59 +0100 Subject: 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 --- include/payload.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/payload.h') 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; }; -- cgit v1.2.3