summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2022-07-25 16:42:23 +0200
committerFlorian Westphal <fw@strlen.de>2022-08-05 01:46:39 +0200
commitdbd5f348c71decf0baa8fb592c576f63fa232f50 (patch)
tree92482fd32256748b67b4e15effd7f293b79cf3c3
parent0d9daa0407212c8cc89b3ea8aee031ddf0109b08 (diff)
debug: dump the l2 protocol stack
Previously we used to print the cumulative size of the headers, update this to print the tracked l2 stack. Signed-off-by: Florian Westphal <fw@strlen.de>
-rw-r--r--src/proto.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/proto.c b/src/proto.c
index 22055fcf..c8b3361b 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -154,6 +154,12 @@ static void proto_ctx_debug(const struct proto_ctx *ctx, enum proto_bases base,
if (!(debug_mask & NFT_DEBUG_PROTO_CTX))
return;
+ if (base == PROTO_BASE_LL_HDR && ctx->stacked_ll_count) {
+ pr_debug(" saved ll headers:");
+ for (i = 0; i < ctx->stacked_ll_count; i++)
+ pr_debug(" %s", ctx->stacked_ll[i]->name);
+ }
+
pr_debug("update %s protocol context:\n", proto_base_names[base]);
for (i = PROTO_BASE_LL_HDR; i <= PROTO_BASE_MAX; i++) {
pr_debug(" %-20s: %s",