X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/513f782ae18791f0c925b9235da749b38159b607..c2d6a5db5b15f08b9e858e3fcf1e6847aaebe26b:/print-zephyr.c diff --git a/print-zephyr.c b/print-zephyr.c index b7b1defd..10aaf216 100644 --- a/print-zephyr.c +++ b/print-zephyr.c @@ -23,7 +23,7 @@ /* \summary: Zephyr printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif #include "netdissect-stdinc.h" @@ -134,7 +134,7 @@ str_to_lower(const char *string) zb_string = z_buf; while (*zb_string) { - *zb_string = tolower((unsigned char)(*zb_string)); + *zb_string = ND_TOLOWER((unsigned char)(*zb_string)); zb_string++; } @@ -169,6 +169,7 @@ zephyr_print(netdissect_options *ndo, const u_char *cp, int length) int lose = 0; int truncated = 0; + ndo->ndo_protocol = "zephyr"; /* squelch compiler warnings */ #define PARSE_STRING \ @@ -342,6 +343,6 @@ zephyr_print(netdissect_options *ndo, const u_char *cp, int length) return; trunc: - ND_PRINT(" [|zephyr] (%d)", length); + nd_print_trunc(ndo); return; }