]> The Tcpdump Group git mirrors - tcpdump/commitdiff
shift the state field in the bfdv1 printer correct
authorhannes <hannes>
Thu, 2 Feb 2006 06:35:52 +0000 (06:35 +0000)
committerhannes <hannes>
Thu, 2 Feb 2006 06:35:52 +0000 (06:35 +0000)
print-bfd.c

index f7a8ef298d0e820010bd8a55e1089e7663d5f96f..6406168b1b5ddd582c7945d2e0b6a5f75112108a 100644 (file)
@@ -15,7 +15,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-bfd.c,v 1.9 2005-04-28 09:27:35 hannes Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-bfd.c,v 1.10 2006-02-02 06:35:52 hannes Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -219,7 +219,7 @@ bfd_print(register const u_char *pptr, register u_int len, register u_int port)
                 printf("BFDv%u, %s, State %s, Flags: [%s], length: %u",
                        version,
                        tok2str(bfd_port_values, "unknown (%u)", port),
-                       tok2str(bfd_v1_state_values, "unknown (%u)", bfd_header->flags & 0xc0),
+                       tok2str(bfd_v1_state_values, "unknown (%u)", (bfd_header->flags & 0xc0) >> 6),
                        bittok2str(bfd_v1_flag_values, "none", bfd_header->flags & 0x3f),
                        len);
                 return;