diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-01-02 15:36:31 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2023-01-02 15:36:31 +0100 |
commit | 75b096c094a5ee1d6ef443f16d6b55fa3dd1f197 (patch) | |
tree | 2259610009541c074b076b1b25b288c840a357b8 /include/proto.h | |
parent | dd9e8cd92828d3c1276052485706aeaa5a354a71 (diff) |
src: display (inner) tag in --debug=proto-ctx
For easier debugging, add decoration on protocol context:
# nft --debug=proto-ctx add rule netdev x y udp dport 4789 vxlan ip protocol icmp counter
update link layer protocol context (inner):
link layer : netdev <-
network layer : none
transport layer : none
payload data : none
update network layer protocol context (inner):
link layer : netdev
network layer : ip <-
transport layer : none
payload data : none
update network layer protocol context (inner):
link layer : netdev
network layer : ip <-
transport layer : none
payload data : none
update transport layer protocol context (inner):
link layer : netdev
network layer : ip
transport layer : icmp <-
payload data : none
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/proto.h')
-rw-r--r-- | include/proto.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/proto.h b/include/proto.h index 5bb7562d..32e07448 100644 --- a/include/proto.h +++ b/include/proto.h @@ -190,6 +190,7 @@ extern const struct proto_desc *proto_dev_desc(uint16_t type); struct proto_ctx { unsigned int debug_mask; uint8_t family; + bool inner; union { struct { uint8_t type; @@ -209,7 +210,7 @@ struct proto_ctx { }; extern void proto_ctx_init(struct proto_ctx *ctx, unsigned int family, - unsigned int debug_mask); + unsigned int debug_mask, bool inner); extern void proto_ctx_update(struct proto_ctx *ctx, enum proto_bases base, const struct location *loc, const struct proto_desc *desc); |