return;
}
print_16bits_val(ndo, (const uint16_t *)dat);
- ND_PRINT((ndo, ", %02x", dat[2]));
+ ND_PRINT((ndo, ", %02x", EXTRACT_U_1(dat + 2)));
dat += 3;
length -= 3;
if (length != 0) {
/* 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