From ba8936b39b0ce2ff02f3aeb307df4c27657652d8 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Wed, 2 May 2018 17:15:04 +0200 Subject: Print truncations with nd_print_trunc() instead of tstr[] strings Remove the tstr[] strings. Update the output of some tests accordingly. Moreover: Add or update some ndo_protocol fields. --- print-vxlan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'print-vxlan.c') diff --git a/print-vxlan.c b/print-vxlan.c index 826d2aaf..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 @@ -71,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); } -- cgit v1.2.1