Skip to content

Commit 3989102

Browse files
committed
UDLD: Print the protocol name before any check
1 parent 5f13dd9 commit 3989102

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

print-udld.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ udld_print(netdissect_options *ndo,
105105
uint8_t ver, code, flags;
106106

107107
ndo->ndo_protocol = "udld";
108+
nd_print_protocol_caps(ndo);
109+
108110
if (length < UDLD_HEADER_LEN)
109111
goto invalid;
110112

@@ -117,7 +119,7 @@ udld_print(netdissect_options *ndo,
117119
tptr += 1;
118120
length -= 1;
119121

120-
ND_PRINT("UDLDv%u, Code %s (%x), Flags [%s] (0x%02x), length %u",
122+
ND_PRINT("v%u, Code %s (%x), Flags [%s] (0x%02x), length %u",
121123
ver,
122124
tok2str(udld_code_values, "Reserved", code),
123125
code,

0 commit comments

Comments
 (0)