diff options
author | Patrick McHardy <kaber@trash.net> | 2016-03-26 10:04:48 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2016-04-24 22:15:10 +0100 |
commit | 7f9cd6f5841132109aa1d514a0624eeb89747011 (patch) | |
tree | 02e43a46e09da3a6add0d5fce8c09c405df9a9cf /include | |
parent | 1f229e4f83a651029e7cdc13e24a2827a6af25d2 (diff) |
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 <kaber@trash.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 5 |
1 files changed, 5 insertions, 0 deletions
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), } |