]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-slow.c
Handle rpcaps:// URLs as well, for rpcap-over-TLS.
[tcpdump] / print-slow.c
index 976c576639b632965320d18dd62eab27eadf75da..4e0ab030f7785ad3aa84fcb62ca516aaebbda1b1 100644 (file)
@@ -31,7 +31,6 @@
 #include "addrtoname.h"
 #include "oui.h"
 
-static const char tstr[] = " [|slow]";
 
 #define        SLOW_PROTO_LACP                     1
 #define        SLOW_PROTO_MARKER                   2
@@ -249,6 +248,7 @@ slow_print(netdissect_options *ndo,
     int print_version;
     u_int subtype;
 
+    ndo->ndo_protocol = "slow";
     if (len < 1)
         goto tooshort;
     ND_TCHECK_1(pptr);
@@ -340,7 +340,7 @@ tooshort:
     return;
 
 trunc:
-    ND_PRINT("%s", tstr);
+    nd_print_trunc(ndo);
 }
 
 static void
@@ -482,7 +482,7 @@ tooshort:
     return;
 
 trunc:
-    ND_PRINT("%s", tstr);
+    nd_print_trunc(ndo);
 }
 
 static void
@@ -749,5 +749,5 @@ tooshort:
     return;
 
 trunc:
-    ND_PRINT("%s", tstr);
+    nd_print_trunc(ndo);
 }