]> The Tcpdump Group git mirrors - tcpdump/commitdiff
bugfix: root-pathcost is not a time-quantity
authorhannes <hannes>
Wed, 7 Mar 2007 11:21:24 +0000 (11:21 +0000)
committerhannes <hannes>
Wed, 7 Mar 2007 11:21:24 +0000 (11:21 +0000)
print-stp.c

index 397b72d87f674479b0b6ff21224755c45d22a873..767dfd3292d3f9877d308225f325546e2573d6e8 100644 (file)
@@ -11,7 +11,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-"@(#) $Header: /tcpdump/master/tcpdump/print-stp.c,v 1.15 2007-03-06 15:03:51 hannes Exp $";
+"@(#) $Header: /tcpdump/master/tcpdump/print-stp.c,v 1.16 2007-03-07 11:21:24 hannes Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -122,7 +122,7 @@ stp_print_config_bpdu(const struct stp_bpdu_ *stp_bpdu, u_int length)
 
     printf("\n\troot-id %s, root-pathcost %u",
            stp_print_bridge_id((const u_char *)&stp_bpdu->root_id),
-           EXTRACT_32BITS(&stp_bpdu->root_path_cost) / STP_TIME_BASE);
+           EXTRACT_32BITS(&stp_bpdu->root_path_cost));
 
     /* Port role is only valid for 802.1w */
     if (stp_bpdu->protocol_version == STP_PROTO_RAPID) {