Skip to content

Commit 13974d2

Browse files
committed
DTP: Print the protocol name before any check
1 parent b4272b3 commit 13974d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

print-dtp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ void
4545
dtp_print(netdissect_options *ndo, const u_char *tptr, u_int length)
4646
{
4747
ndo->ndo_protocol = "dtp";
48+
nd_print_protocol_caps(ndo);
49+
4850
if (length < DTP_HEADER_LEN) {
4951
ND_PRINT("[zero packet length]");
5052
goto invalid;
5153
}
5254

53-
ND_PRINT("DTPv%u, length %u",
55+
ND_PRINT("v%u, length %u",
5456
GET_U_1(tptr),
5557
length);
5658

0 commit comments

Comments
 (0)