From: Francois-Xavier Le Bail Date: Tue, 26 Mar 2019 11:17:45 +0000 (+0100) Subject: ZEP: Use nd_print_protocol() and nd_print_trunc() calls X-Git-Tag: tcpdump-4.99-bp~882 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/8d35d758923b0f0cab625255995c682e7b1d2fd2 ZEP: Use nd_print_protocol() and nd_print_trunc() calls Moreover: Add a 'summary' comment with the protocol name. --- diff --git a/print-zep.c b/print-zep.c index deb99c60..afb6fd7d 100644 --- a/print-zep.c +++ b/print-zep.c @@ -19,6 +19,7 @@ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +/* \summary: ZigBee Encapsulation Protocol (ZEP) printer */ #ifdef HAVE_CONFIG_H #include @@ -106,7 +107,7 @@ zep_print(netdissect_options *ndo, ndo->ndo_protocol ="ZEP"; - ND_PRINT("ZEP"); + nd_print_protocol(ndo); ND_TCHECK_LEN(bp, 8); @@ -175,5 +176,5 @@ zep_print(netdissect_options *ndo, return; trunc: - ND_PRINT(" [|ZEP]"); + nd_print_trunc(ndo); }