X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/8b1d184e10263b5889ffcfbc4887ca82d7ca07df..8030a66cdcbf81c88cbb7c38ef7a334e9f1941cd:/print-udld.c diff --git a/print-udld.c b/print-udld.c index 3b77dd51..e17e7128 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; @@ -155,12 +154,12 @@ udld_print (netdissect_options *ndo, const u_char *pptr, u_int length) case UDLD_PORT_ID_TLV: case UDLD_DEVICE_NAME_TLV: ND_PRINT(", "); - fn_printzp(ndo, tptr, len, NULL); + nd_printzp(ndo, tptr, len, NULL); break; case UDLD_ECHO_TLV: ND_PRINT(", "); - (void)fn_printn(ndo, tptr, len, NULL); + (void)nd_printn(ndo, tptr, len, NULL); break; case UDLD_MESSAGE_INTERVAL_TLV: @@ -185,8 +184,8 @@ udld_print (netdissect_options *ndo, const u_char *pptr, u_int length) return; invalid: - ND_PRINT("%s", istr); + nd_print_invalid(ndo); return; trunc: - ND_PRINT("%s", tstr); + nd_print_trunc(ndo); }