]> The Tcpdump Group git mirrors - tcpdump/commitdiff
NTP: For clarity use 0x with hexadecimal format.
authorDenis Ovsienko <[email protected]>
Tue, 29 Aug 2017 10:59:11 +0000 (11:59 +0100)
committerDenis Ovsienko <[email protected]>
Tue, 29 Aug 2017 11:03:05 +0000 (12:03 +0100)
print-ntp.c

index 9952a0202b57ddf6ec5b82dbde993036e7d60ff3..f38862f447b01427dc211a4729a946365fca9bf1 100644 (file)
@@ -281,7 +281,7 @@ ntp_print(netdissect_options *ndo,
        default:
                /* In NTPv4 (RFC 5905) refid is an IPv4 address or first 32 bits of
                   MD5 sum of IPv6 address */
-               ND_PRINT((ndo, "%08x", EXTRACT_32BITS(&bp->refid)));
+               ND_PRINT((ndo, "0x%08x", EXTRACT_32BITS(&bp->refid)));
                break;
        }