]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-rt6.c
RT6: Print SRH TLV HMAC "reserved" field if non zero in verbose mode
[tcpdump] / print-rt6.c
index 0478f382786a5289a72b2808c0ce63d85c17ad4f..fe0e8575f1cb5868d10f216fe37145962bcb1c6b 100644 (file)
@@ -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)