X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3e3e6d2ef4c1b120077378fe32dc0a88ee81f38e..a8abce5c5e2dce2ba6dbccd5d3829da104b80f9c:/print-udld.c diff --git a/print-udld.c b/print-udld.c index a9ada9e4..224d4825 100644 --- a/print-udld.c +++ b/print-udld.c @@ -28,7 +28,6 @@ #include "netdissect.h" #include "extract.h" -static const char tstr[] = " [|udld]"; #define UDLD_HEADER_LEN 4 #define UDLD_DEVICE_ID_TLV 0x0001 @@ -94,7 +93,7 @@ static const struct tok udld_flags_values[] = { #define UDLD_EXTRACT_OPCODE(x) ((x)&0x1f) void -udld_print (netdissect_options *ndo, const u_char *pptr, u_int length) +udld_print(netdissect_options *ndo, const u_char *pptr, u_int length) { int code, type, len; const u_char *tptr; @@ -188,5 +187,5 @@ invalid: ND_PRINT("%s", istr); return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); }