From: hannes Date: Thu, 20 Mar 2008 09:30:56 +0000 (+0000) Subject: bugfix in the lldp printer, when referencing the key for printing aggregation values X-Git-Tag: tcpdump-4.1.0~180 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a7c56c015583d6ec2b70475c17d23352487b89f3 bugfix in the lldp printer, when referencing the key for printing aggregation values --- diff --git a/print-lldp.c b/print-lldp.c index a70e3965..e8f67fd2 100644 --- a/print-lldp.c +++ b/print-lldp.c @@ -20,7 +20,7 @@ #ifndef lint static const char rcsid[] _U_ = -"@(#) $Header: /tcpdump/master/tcpdump/print-lldp.c,v 1.9 2008-01-09 09:40:47 hannes Exp $"; +"@(#) $Header: /tcpdump/master/tcpdump/print-lldp.c,v 1.10 2008-03-20 09:30:56 hannes Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -635,7 +635,7 @@ lldp_private_8023_print(const u_char *tptr) case LLDP_PRIVATE_8023_SUBTYPE_LINKAGGR: printf("\n\t aggregation status [%s], aggregation port ID %u", - bittok2str(lldp_aggregation_values, "none", (*tptr+4)), + bittok2str(lldp_aggregation_values, "none", *(tptr+4)), EXTRACT_32BITS(tptr+5)); break;