- if (!invtlv) {
- /*
- * At this point, tlv_valid() has ensured that the TLV
- * length is large enough but not too large (it doesn't
- * go past the end of the containing TLV).
- */
- const u_char *dp = (const u_char *) TLV_DATA(pdtlv);
-
- if (!ttlv_valid(type)) {
- ND_PRINT("%s TLV type 0x%x len %u\n",
- tok2str(ForCES_TLV_err, NULL, invtlv), type,
- tlvl);
- return -1;
- }
- if (ndo->ndo_vflag >= 3)
- ND_PRINT("%s%s, length %u (data length %u Bytes)",
- ib, tok2str(ForCES_TLV, NULL, type),
- tlvl, tlvl - TLV_HDRL);
-
- return pdata_print(ndo, dp, tlvl - TLV_HDRL, op_msk, indent + 1);
- } else {