Lines Matching refs:tlv_len
649 const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument
656 if (tlv_len < 4) { in lldp_private_8021_print()
667 if (tlv_len < 6) { in lldp_private_8021_print()
674 if (tlv_len < 7) { in lldp_private_8021_print()
683 if (tlv_len < 6) { in lldp_private_8021_print()
687 if (tlv_len < 7) { in lldp_private_8021_print()
691 if (tlv_len < 7+sublen) { in lldp_private_8021_print()
698 if (tlv_len < 5) { in lldp_private_8021_print()
702 if (tlv_len < 5+sublen) { in lldp_private_8021_print()
709 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_CONGESTION_NOTIFICATION_LENGTH){ in lldp_private_8021_print()
727 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_ETS_CONFIGURATION_LENGTH) { in lldp_private_8021_print()
746 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_ETS_RECOMMENDATION_LENGTH) { in lldp_private_8021_print()
759 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_PFC_CONFIGURATION_LENGTH) { in lldp_private_8021_print()
774 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_APPLICATION_PRIORITY_MIN_LENGTH) { in lldp_private_8021_print()
778 if(tlv_len<=LLDP_PRIVATE_8021_SUBTYPE_APPLICATION_PRIORITY_MIN_LENGTH){ in lldp_private_8021_print()
782 sublen=tlv_len-5; in lldp_private_8021_print()
797 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_EVB_LENGTH){ in lldp_private_8021_print()
819 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_CDCP_MIN_LENGTH){ in lldp_private_8021_print()
826 sublen=tlv_len-8; in lldp_private_8021_print()
852 const u_char *tptr, u_int tlv_len) in lldp_private_8023_print() argument
856 if (tlv_len < 4) { in lldp_private_8023_print()
867 if (tlv_len < 9) { in lldp_private_8023_print()
882 if (tlv_len < 7) { in lldp_private_8023_print()
892 if (tlv_len < 9) { in lldp_private_8023_print()
901 if (tlv_len < 6) { in lldp_private_8023_print()
936 const u_char *tptr, u_int tlv_len) in lldp_private_iana_print() argument
940 if (tlv_len < 8) { in lldp_private_iana_print()
952 (void)fn_printn(ndo, tptr+4, tlv_len-4, NULL); in lldp_private_iana_print()
968 const u_char *tptr, u_int tlv_len) in lldp_private_tia_print() argument
976 if (tlv_len < 4) { in lldp_private_tia_print()
987 if (tlv_len < 7) { in lldp_private_tia_print()
999 if (tlv_len < 8) { in lldp_private_tia_print()
1016 if (tlv_len < 5) { in lldp_private_tia_print()
1026 if (tlv_len < 21) { in lldp_private_tia_print()
1045 if (tlv_len < 6) { in lldp_private_tia_print()
1052 if (tlv_len < 7+lci_len) { in lldp_private_tia_print()
1097 safeputs(ndo, tptr + 5, tlv_len - 5); in lldp_private_tia_print()
1102 print_unknown_data(ndo, tptr + 5, "\n\t ", tlv_len - 5); in lldp_private_tia_print()
1107 if (tlv_len < 7) { in lldp_private_tia_print()
1134 safeputs(ndo, tptr + 4, tlv_len - 4); in lldp_private_tia_print()
1156 u_int tlen, tlv_type, tlv_len; in lldp_private_dcbx_print() local
1182 tlv_len = LLDP_EXTRACT_LEN(tlv); in lldp_private_dcbx_print()
1189 if (!tlv_type || !tlv_len) { in lldp_private_dcbx_print()
1193 ND_TCHECK2(*tptr, tlv_len); in lldp_private_dcbx_print()
1194 if (tlen < tlv_len) { in lldp_private_dcbx_print()
1201 if (tlv_len < 10) { in lldp_private_dcbx_print()
1205 LLDP_DCBX_CONTROL_TLV, tlv_len)); in lldp_private_dcbx_print()
1213 if (tlv_len < 17) { in lldp_private_dcbx_print()
1217 LLDP_DCBX_PRIORITY_GROUPS_TLV, tlv_len)); in lldp_private_dcbx_print()
1243 if (tlv_len < 6) { in lldp_private_dcbx_print()
1248 LLDP_DCBX_PRIORITY_FLOW_CONTROL_TLV, tlv_len)); in lldp_private_dcbx_print()
1265 if (tlv_len < 4) { in lldp_private_dcbx_print()
1269 LLDP_DCBX_APPLICATION_TLV, tlv_len)); in lldp_private_dcbx_print()
1278 tval = tlv_len - 4; in lldp_private_dcbx_print()
1301 print_unknown_data(ndo, tptr, "\n\t ", tlv_len); in lldp_private_dcbx_print()
1304 tlen -= tlv_len; in lldp_private_dcbx_print()
1305 tptr += tlv_len; in lldp_private_dcbx_print()
1425 u_int oui, tlen, hexdump, tlv_type, tlv_len; in lldp_print() local
1441 tlv_len = LLDP_EXTRACT_LEN(tlv); in lldp_print()
1450 tlv_type, tlv_len)); in lldp_print()
1454 if (!tlv_type || !tlv_len) { in lldp_print()
1458 ND_TCHECK2(*tptr, tlv_len); in lldp_print()
1459 if (tlen < tlv_len) { in lldp_print()
1467 if (tlv_len < 2) { in lldp_print()
1477 if (tlv_len < 1+6) { in lldp_print()
1488 safeputs(ndo, tptr + 1, tlv_len - 1); in lldp_print()
1492 network_addr = lldp_network_addr_print(ndo, tptr+1, tlv_len-1); in lldp_print()
1508 if (tlv_len < 2) { in lldp_print()
1518 if (tlv_len < 1+6) { in lldp_print()
1529 safeputs(ndo, tptr + 1, tlv_len - 1); in lldp_print()
1533 network_addr = lldp_network_addr_print(ndo, tptr+1, tlv_len-1); in lldp_print()
1549 if (tlv_len < 2) { in lldp_print()
1559 safeputs(ndo, tptr, tlv_len); in lldp_print()
1569 safeputs(ndo, tptr, tlv_len); in lldp_print()
1575 safeputs(ndo, tptr, tlv_len); in lldp_print()
1587 if (tlv_len < 4) { in lldp_print()
1601 if (!lldp_mgmt_addr_tlv_print(ndo, tptr, tlv_len)) { in lldp_print()
1609 if (tlv_len < 3) { in lldp_print()
1617 hexdump = lldp_private_8021_print(ndo, tptr, tlv_len); in lldp_print()
1620 hexdump = lldp_private_8023_print(ndo, tptr, tlv_len); in lldp_print()
1623 hexdump = lldp_private_iana_print(ndo, tptr, tlv_len); in lldp_print()
1626 hexdump = lldp_private_tia_print(ndo, tptr, tlv_len); in lldp_print()
1629 hexdump = lldp_private_dcbx_print(ndo, tptr, tlv_len); in lldp_print()
1645 print_unknown_data(ndo, tptr, "\n\t ", tlv_len); in lldp_print()
1648 tlen -= tlv_len; in lldp_print()
1649 tptr += tlv_len; in lldp_print()