Skip to content

Commit 5f13dd9

Browse files
committed
NTP: Print the protocol name before any check
1 parent 4ac4614 commit 5f13dd9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

print-ntp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,10 +423,12 @@ ntp_print(netdissect_options *ndo,
423423
uint8_t status;
424424

425425
ndo->ndo_protocol = "ntp";
426+
nd_print_protocol_caps(ndo);
427+
426428
status = GET_U_1(bp->td.status);
427429

428430
version = (status & VERSIONMASK) >> VERSIONSHIFT;
429-
ND_PRINT("NTPv%u", version);
431+
ND_PRINT("v%u", version);
430432

431433
mode = (status & MODEMASK) >> MODESHIFT;
432434
if (!ndo->ndo_vflag) {

0 commit comments

Comments
 (0)