We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3e2077 commit b4272b3Copy full SHA for b4272b3
print-cdp.c
@@ -260,12 +260,13 @@ cdp_print(netdissect_options *ndo,
260
uint16_t checksum;
261
262
ndo->ndo_protocol = "cdp";
263
+ nd_print_protocol_caps(ndo);
264
265
if (length < CDP_HEADER_LEN) {
266
ND_PRINT(" (packet length %u < %u)", length, CDP_HEADER_LEN);
267
goto invalid;
268
}
- ND_PRINT("CDPv%u, ttl: %us",
269
+ ND_PRINT("v%u, ttl: %us",
270
GET_U_1(tptr + CDP_HEADER_VERSION_OFFSET),
271
GET_U_1(tptr + CDP_HEADER_TTL_OFFSET));
272
checksum = GET_BE_U_2(tptr + CDP_HEADER_CHECKSUM_OFFSET);
0 commit comments