]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ZEP: Use nd_print_protocol() and nd_print_trunc() calls
authorFrancois-Xavier Le Bail <[email protected]>
Tue, 26 Mar 2019 11:17:45 +0000 (12:17 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Tue, 26 Mar 2019 11:23:09 +0000 (12:23 +0100)
Moreover:
Add a 'summary' comment with the protocol name.

print-zep.c

index deb99c60d8309d3e1216de17fb4eb969df547708..afb6fd7dd1282fd9ad26ab9a9beb216d79abb3d2 100644 (file)
@@ -19,6 +19,7 @@
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  */
 
+/* \summary: ZigBee Encapsulation Protocol (ZEP) printer */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
@@ -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);
 }