diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-04-18 17:50:30 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2023-04-18 19:14:18 +0200 |
commit | 89b68e1a5fe131951858d7bcf71587ad7fa25846 (patch) | |
tree | 87285dae1ead275bf9558f3b33741cef96463518 | |
parent | c7fd6445c6c4c1b36183bc043a06a5e17237c49f (diff) | |
download | tcpdump-89b68e1a5fe131951858d7bcf71587ad7fa25846.tar.gz |
RT6: Print SRH TLV HMAC "reserved" field if non zero in verbose mode
reserved: MUST be 0 (MBZ).
-rw-r--r-- | print-rt6.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/print-rt6.c b/print-rt6.c index 0478f382..fe0e8575 100644 --- a/print-rt6.c +++ b/print-rt6.c @@ -79,6 +79,8 @@ srh_tlv_print(netdissect_options *ndo, const u_char *p, u_int bytes_left) p += 2; if (ndo->ndo_vflag) ND_PRINT(", D=%u", reserved >> 15); + if (ndo->ndo_vflag && (reserved & 0x7fff) != 0) + ND_PRINT(", reserved MBZ %u", reserved & 0x7fff); key_id = GET_BE_U_4(p); p += 4; if (ndo->ndo_vflag) |