ND_PRINT((ndo, " "));
- ND_TCHECK(*ptr); /* Flags & Length */
+ ND_TCHECK_2(ptr); /* Flags & Length */
len = EXTRACT_BE_U_2(ptr) & L2TP_AVP_HDR_LEN_MASK;
/* If it is not long enough to contain the header, we'll give up. */
/* If it goes past the end of the remaining length of the captured
data, we'll give up. */
- ND_TCHECK2(*ptr, len);
+ ND_TCHECK_LEN(ptr, len);
/*
* After this point, we don't need to check whether we go past