]> The Tcpdump Group git mirrors - tcpdump/commitdiff
As noted in a bug report, the type for a topology change notification is
authorguy <guy>
Fri, 12 Sep 2003 20:53:19 +0000 (20:53 +0000)
committerguy <guy>
Fri, 12 Sep 2003 20:53:19 +0000 (20:53 +0000)
0x80, not 1.

print-stp.c

index dd7169576c41438f269d48513641e990be8f1c1f..1d4754fdc4d3e7f3038e7beb26bb366a32bd8f02 100644 (file)
@@ -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;