summaryrefslogtreecommitdiff
path: root/print-stp.c
diff options
context:
space:
mode:
authorguy <guy>2003-09-12 20:53:19 +0000
committerguy <guy>2003-09-12 20:53:19 +0000
commit88664d9c43dcd170c1195daf69495bfc0eca70e5 (patch)
tree5bc9ee741b52c69edea7afdd66ad34a151c9b9dd /print-stp.c
parent8c7aa2b43396ebd7435f07fecaf72e9c9da79bd6 (diff)
downloadtcpdump-88664d9c43dcd170c1195daf69495bfc0eca70e5.tar.gz
As noted in a bug report, the type for a topology change notification is
0x80, not 1.
Diffstat (limited to 'print-stp.c')
-rw-r--r--print-stp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-stp.c b/print-stp.c
index dd716957..1d4754fd 100644
--- a/print-stp.c
+++ b/print-stp.c
@@ -11,7 +11,7 @@
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-stp.c,v 1.10 2002-09-05 21:25:49 guy Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-stp.c,v 1.11 2003-09-12 20:53:19 guy Exp $";
#endif
#ifdef HAVE_CONFIG_H
@@ -81,13 +81,13 @@ stp_print(const u_char *p, u_int length)
switch (p[6])
{
- case 0:
+ case 0x00:
if (length < 10)
goto trunc;
stp_print_config_bpdu(p);
break;
- case 1:
+ case 0x80:
stp_print_tcn_bpdu();
break;