X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c99c899d6e0da1b869776dadfd04f8a9f9972b3e..HEAD:/print-ntp.c diff --git a/print-ntp.c b/print-ntp.c index a927e7be..5f791feb 100644 --- a/print-ntp.c +++ b/print-ntp.c @@ -66,7 +66,7 @@ * | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | | - * | Originate Timestamp (64) | + * | Origin Timestamp (64) | * | | * +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * | | @@ -277,7 +277,7 @@ ntp_time_print(netdissect_options *ndo, * modified or extended in the future, and unregistered kiss * codes are possible (and are being seen in the field). */ - if (!ND_ASCII_ISPRINT((bp->refid)[0])) { + if (!ND_ASCII_ISPRINT(GET_U_1(bp->refid))) { ND_PRINT("(unspec)"); ND_TCHECK_4(bp->refid); } else { @@ -309,7 +309,7 @@ ntp_time_print(netdissect_options *ndo, ND_PRINT("\n\t Reference Timestamp: "); p_ntp_time(ndo, &(bp->ref_timestamp)); - ND_PRINT("\n\t Originator Timestamp: "); + ND_PRINT("\n\t Origin Timestamp: "); p_ntp_time(ndo, &(bp->org_timestamp)); ND_PRINT("\n\t Receive Timestamp: ");