You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
check-encryption-leaks: small change in formatting prints
This commit adjusts the formatting in our prints. In particular:
* Inner IPv4/IPv6 packet: let's print protocol before length, to align to
the outer packet print. This will still print also all the supplementary
info, such as ifindex, netns, etc. We leave these info there given the
inner packet is always reported, both in Native and Overlay mode.
* L4 info: the whole `Detected TCP message, TCPFlags: ...` can be further
simplified to just `TCP (TCPFlags: ...)`. The same applies to UDP and ICMP.
This makes the print more compact and easier to read.
* ICMP: let's print Type and Code before the other fields, given they are
the most relevant ones and immediately refer to the ICMP message type.
Example of an ICMP packet via VXLAN:
```
[10:49:50:268834] [0xffff8907af02e100] 172.18.0.3:36366 -> 172.18.0.4:8472 (proto: 17, encap: 1, skb: 0)
[10:49:50:268834] [0xffff8907af02e100] ↳ 10.244.2.11:0 -> 10.244.0.43:0 (proto: 1, len: 84, ifindex: 7, netns: f0000000, srcPod: 1 (internal: 0), dstPod: 1 (internal: 0), proxy: 0 (masqueraded: 0))
[10:49:50:268834] [0xffff8907af02e100] ↳ ICMP (Type: 8, Code: 0, IPFlags: .D., FragOff: 0, FragID: 54072)
```
Signed-off-by: Simone Magnani <simone.magnani@isovalent.com>
0 commit comments