Lines Matching refs:tlv
47 * TLV type codes
1106 u_int16_t tlv;
1127 while (tlen >= sizeof(tlv)) {
1129 TCHECK2(*tptr, sizeof(tlv));
1131 tlv = EXTRACT_16BITS(tptr);
1133 tlv_type = LLDP_EXTRACT_TYPE(tlv);
1134 tlv_len = LLDP_EXTRACT_LEN(tlv);
1137 tlen -= sizeof(tlv);
1138 tptr += sizeof(tlv);
1150 /* decode every tlv */
1371 u_int16_t tlv, cap, ena_cap;
1381 while (tlen >= sizeof(tlv)) {
1383 TCHECK2(*tptr, sizeof(tlv));
1385 tlv = EXTRACT_16BITS(tptr);
1387 tlv_type = LLDP_EXTRACT_TYPE(tlv);
1388 tlv_len = LLDP_EXTRACT_LEN(tlv);
1391 tlen -= sizeof(tlv);
1392 tptr += sizeof(tlv);
1395 printf("\n\t%s TLV (%u), length %u",