]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vxlan.c
Fix spaces
[tcpdump] / print-vxlan.c
index de0adbffb354c76ffc437486c211f9264c984923..73875a1124b24a960bb6048035da8922e457b2a9 100644 (file)
 /* specification: RFC 7348 */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
 
 #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);
 }