Lines Matching defs:tlv
41 * TLV type codes
1109 uint16_t tlv;
1130 while (tlen >= sizeof(tlv)) {
1132 ND_TCHECK2(*tptr, sizeof(tlv));
1134 tlv = EXTRACT_16BITS(tptr);
1136 tlv_type = LLDP_EXTRACT_TYPE(tlv);
1137 tlv_len = LLDP_EXTRACT_LEN(tlv);
1140 tlen -= sizeof(tlv);
1141 tptr += sizeof(tlv);
1153 /* decode every tlv */
1379 uint16_t tlv, cap, ena_cap;
1389 while (tlen >= sizeof(tlv)) {
1391 ND_TCHECK2(*tptr, sizeof(tlv));
1393 tlv = EXTRACT_16BITS(tptr);
1395 tlv_type = LLDP_EXTRACT_TYPE(tlv);
1396 tlv_len = LLDP_EXTRACT_LEN(tlv);
1399 tlen -= sizeof(tlv);
1400 tptr += sizeof(tlv);
1403 ND_PRINT((ndo, "\n\t%s TLV (%u), length %u",