Remove a redundant ND_TCHECK_LEN() and increment ndo_ll_hdr_len after
retrieving a full header worth of data, not before.
u_int traftype;
ndo->ndo_protocol = "sunatm";
- ND_TCHECK_LEN(p, PKT_BEGIN_POS);
- ndo->ndo_ll_hdr_len += PKT_BEGIN_POS;
if (ndo->ndo_eflag) {
ND_PRINT(GET_U_1(p + DIR_POS) & 0x80 ? "Tx: " : "Rx: ");
p += PKT_BEGIN_POS;
caplen -= PKT_BEGIN_POS;
length -= PKT_BEGIN_POS;
+ ndo->ndo_ll_hdr_len += PKT_BEGIN_POS;
atm_print(ndo, vpi, vci, traftype, p, length, caplen);
}