X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/fb2479d733dbe8a991d11909b319341f7db62ab1..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-vxlan.c diff --git a/print-vxlan.c b/print-vxlan.c index 80c8ddce..73875a11 100644 --- a/print-vxlan.c +++ b/print-vxlan.c @@ -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); }