X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/e2982e7f6f0b624a773ec5a58885ee80fab46d34..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-vxlan.c diff --git a/print-vxlan.c b/print-vxlan.c index de0adbff..73875a11 100644 --- a/print-vxlan.c +++ b/print-vxlan.c @@ -18,15 +18,14 @@ /* specification: RFC 7348 */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#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); }