From: Denis Ovsienko Date: Mon, 4 Sep 2017 11:03:07 +0000 (+0100) Subject: NTP: Use tstr for truncation indicator. X-Git-Tag: tcpdump-4.99-bp~1997 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/febd0bc5aa33b3de9b5864e8c5565fe7b63f519f NTP: Use tstr for truncation indicator. This implements the same convention as in all other decoders. --- diff --git a/print-ntp.c b/print-ntp.c index 2a42c8f6..a7d32bdf 100644 --- a/print-ntp.c +++ b/print-ntp.c @@ -38,6 +38,8 @@ #include "addrtoname.h" #include "extract.h" +static const char tstr[] = " [|ntp]"; + /* * Based on ntp.h from the U of MD implementation * This file is based on Version 2 of the NTP spec (RFC1119). @@ -386,7 +388,7 @@ invalid: return; trunc: - ND_PRINT((ndo, " [|ntp]")); + ND_PRINT((ndo, " %s", tstr)); } /* @@ -429,7 +431,7 @@ ntp_control_print(netdissect_options *ndo, return; trunc: - ND_PRINT((ndo, " [|ntp]")); + ND_PRINT((ndo, " %s", tstr)); } union ntpdata { @@ -478,7 +480,7 @@ ntp_print(netdissect_options *ndo, return; trunc: - ND_PRINT((ndo, " [|ntp]")); + ND_PRINT((ndo, " %s", tstr)); } static void