Before the previous change, we didn't print it; restore that behavior.
Also update a comment - DEFAULT_SNAPLEN is now pretty large, so we
should capture the entire packet by default.
bittok2str(stp_bpdu_flag_values, "none", stp_bpdu->flags), length);
/*
- * in non-verbose mode just print the flags. We dont read that much
- * of the packet (DEFAULT_SNAPLEN) to print out cist bridge-id
+ * in non-verbose mode just print the flags.
*/
if (!vflag) {
return;
{
const u_char *ptr;
+ /*
+ * in non-verbose mode don't print anything.
+ */
+ if (!vflag) {
+ return;
+ }
+
ptr = (const u_char *)stp_bpdu;
printf("\n\tv4len %d AUXMCID Name %s, Rev %u, \n\t\tdigest %08x%08x%08x%08x",
EXTRACT_16BITS (ptr + offset),