X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/21b12733b62cd4ec2cbe8dd96f13003e61a05944..d27628f311b9afcf5ed6e4b0068e8ba6d6324b14:/print-juniper.c diff --git a/print-juniper.c b/print-juniper.c index 164973c6..dafe48fa 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -1534,6 +1534,7 @@ juniper_parse_header(netdissect_options *ndo, #endif #ifdef DLT_JUNIPER_ATM2 case DLT_JUNIPER_ATM2: + ND_TCHECK_4(p); /* ATM cell relay control word present ? */ if (l2info->cookie[7] & ATM2_PKT_TYPE_MASK) { control_word = GET_BE_U_4(p); @@ -1583,7 +1584,7 @@ juniper_parse_header(netdissect_options *ndo, break; } - if (ndo->ndo_eflag > 1) + if (ndo->ndo_eflag) ND_PRINT("hlen %u, proto 0x%04x, ", l2info->header_len, l2info->proto); return 1; /* everything went ok so far. continue parsing */