From 7f9cd6f5841132109aa1d514a0624eeb89747011 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Sat, 26 Mar 2016 10:04:48 +0000 Subject: proto: add protocol header fields filter and ordering for packet decoding The next patch introduces packet decoding for tracing messages based on the proto definitions. In order to provide a readable output, add a filter to surpress uninteresting header fields and allow to specify and explicit output order. Signed-off-by: Patrick McHardy --- include/proto.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') diff --git a/include/proto.h b/include/proto.h index c252a67d..2a662a1a 100644 --- a/include/proto.h +++ b/include/proto.h @@ -85,6 +85,11 @@ struct proto_desc { const struct proto_desc *desc; } protocols[PROTO_UPPER_MAX]; struct proto_hdr_template templates[PROTO_HDRS_MAX]; + struct { + uint8_t order[PROTO_HDRS_MAX]; + uint32_t filter; + } format; + }; #define PROTO_LINK(__num, __desc) { .num = (__num), .desc = (__desc), } -- cgit v1.2.3