X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/c499612a7f1024a183d0200ef5f1ea7fba63a3e4..e6b28d9d94ec5bf3a23b15164aa3f0e3b7a06d15:/print-zephyr.c?ds=inline diff --git a/print-zephyr.c b/print-zephyr.c index eddbe859..d2fbf4d0 100644 --- a/print-zephyr.c +++ b/print-zephyr.c @@ -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; }