]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vxlan.c
Fix spaces
[tcpdump] / print-vxlan.c
index 80c8ddce023e91c22ce8253d59945d61a89066c8..73875a1124b24a960bb6048035da8922e457b2a9 100644 (file)
@@ -26,7 +26,6 @@
 #include "netdissect.h"
 #include "extract.h"
 
-static const char tstr[] = " [|VXLAN]";
 
 #define VXLAN_HDR_LEN 8
 
@@ -50,6 +49,7 @@ vxlan_print(netdissect_options *ndo, const u_char *bp, u_int len)
     uint8_t flags;
     uint32_t vni;
 
+    ndo->ndo_protocol = "vxlan";
     if (len < VXLAN_HDR_LEN)
         goto trunc;
 
@@ -70,5 +70,5 @@ vxlan_print(netdissect_options *ndo, const u_char *bp, u_int len)
     return;
 
 trunc:
-    ND_PRINT("%s", tstr);
+    nd_print_trunc(ndo);
 }