]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-otv.c
Fixed some warnings, added print-zep.c to CMakeLists
[tcpdump] / print-otv.c
index 88c8cacc1c7142f9c24bef6d00289e4796d41f66..f382cdd2f59bca3758dded99379e378014d63dd5 100644 (file)
@@ -45,6 +45,7 @@ otv_print(netdissect_options *ndo, const u_char *bp, u_int len)
 {
     uint8_t flags;
 
+    ndo->ndo_protocol = "otv";
     ND_PRINT("OTV, ");
     if (len < OTV_HDR_LEN)
         goto trunc;
@@ -70,5 +71,5 @@ otv_print(netdissect_options *ndo, const u_char *bp, u_int len)
     return;
 
 trunc:
-    ND_PRINT(" [|OTV]");
+    nd_print_trunc(ndo);
 }