X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/9759a5bc71a30159479f85a2d8aceb1f348ef818..6c8ef0eb86a39c277d1a43802dd8ea01b51cfb2a:/print-udld.c diff --git a/print-udld.c b/print-udld.c index 22a3487f..02921d0e 100644 --- a/print-udld.c +++ b/print-udld.c @@ -12,11 +12,13 @@ * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS * FOR A PARTICULAR PURPOSE. * - * UNIDIRECTIONAL LINK DETECTION (UDLD) as per RFC5171 - * * Original code by Carles Kishimoto */ +/* \summary: Cisco UniDirectional Link Detection (UDLD) protocol printer */ + +/* specification: RFC 5171 */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif @@ -27,7 +29,6 @@ #include "extract.h" static const char tstr[] = " [|udld]"; -static const char istr[] = " (invalid)"; #define UDLD_HEADER_LEN 4 #define UDLD_DEVICE_ID_TLV 0x0001 @@ -158,7 +159,7 @@ udld_print (netdissect_options *ndo, const u_char *pptr, u_int length) case UDLD_ECHO_TLV: ND_PRINT((ndo, ", ")); - fn_printn(ndo, tptr, len, NULL); + (void)fn_printn(ndo, tptr, len, NULL); break; case UDLD_MESSAGE_INTERVAL_TLV: