Home | History | Annotate | Download | only in tcpdump

Lines Matching refs:tlv_len

640 lldp_private_8021_print(const u_char *tptr, u_int tlv_len)
647 if (tlv_len < 4) {
658 if (tlv_len < 6) {
665 if (tlv_len < 7) {
674 if (tlv_len < 6) {
679 if (tlv_len < 7) {
683 if (tlv_len < 7+sublen) {
690 if (tlv_len < 5) {
694 if (tlv_len < 5+sublen) {
701 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_CONGESTION_NOTIFICATION_LENGTH){
719 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_ETS_CONFIGURATION_LENGTH) {
738 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_ETS_RECOMMENDATION_LENGTH) {
751 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_PFC_CONFIGURATION_LENGTH) {
766 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_APPLICATION_PRIORITY_MIN_LENGTH) {
770 if(tlv_len<=LLDP_PRIVATE_8021_SUBTYPE_APPLICATION_PRIORITY_MIN_LENGTH){
774 sublen=tlv_len-5;
789 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_EVB_LENGTH){
811 if(tlv_len<LLDP_PRIVATE_8021_SUBTYPE_CDCP_MIN_LENGTH){
818 sublen=tlv_len-8;
843 lldp_private_8023_print(const u_char *tptr, u_int tlv_len)
847 tlv_len < 4) {
858 if (tlv_len < 9) {
873 if (tlv_len < 7) {
883 if (tlv_len < 9) {
921 lldp_private_tia_print(const u_char *tptr, u_int tlv_len)
929 if (tlv_len < 4) {
940 if (tlv_len < 7) {
952 if (tlv_len < 8) {
969 if (tlv_len < 5) {
979 if (tlv_len < 21) {
998 if (tlv_len < 6) {
1005 if (tlv_len < 7+lci_len) {
1050 safeputs((const char *)tptr+5, tlv_len-5);
1055 print_unknown_data(tptr+5, "\n\t ", tlv_len-5);
1060 if (tlv_len < 7) {
1087 safeputs((const char *)tptr+4, tlv_len-4);
1108 u_int tlen, tlv_type, tlv_len;
1134 tlv_len = LLDP_EXTRACT_LEN(tlv);
1141 if (!tlv_type || !tlv_len) {
1145 TCHECK2(*tptr, tlv_len);
1146 if (tlen < tlv_len) {
1153 if (tlv_len < 10) {
1157 LLDP_DCBX_CONTROL_TLV, tlv_len);
1165 if (tlv_len < 17) {
1169 LLDP_DCBX_PRIORITY_GROUPS_TLV, tlv_len);
1192 if (tlv_len < 6) {
1197 LLDP_DCBX_PRIORITY_FLOW_CONTROL_TLV, tlv_len);
1214 if (tlv_len < 4) {
1218 LLDP_DCBX_APPLICATION_TLV, tlv_len);
1227 tval = tlv_len - 4;
1250 print_unknown_data(tptr,"\n\t ", tlv_len);
1253 tlen -= tlv_len;
1254 tptr += tlv_len;
1372 u_int oui, tlen, hexdump, tlv_type, tlv_len;
1388 tlv_len = LLDP_EXTRACT_LEN(tlv);
1397 tlv_type, tlv_len);
1401 if (!tlv_type || !tlv_len) {
1405 TCHECK2(*tptr, tlv_len);
1406 if (tlen < tlv_len) {
1414 if (tlv_len < 2) {
1424 if (tlv_len < 1+6) {
1435 safeputs((const char *)tptr+1, tlv_len-1);
1439 network_addr = lldp_network_addr_print(tptr+1, tlv_len-1);
1455 if (tlv_len < 2) {
1465 if (tlv_len < 1+6) {
1476 safeputs((const char *)tptr+1, tlv_len-1);
1480 network_addr = lldp_network_addr_print(tptr+1, tlv_len-1);
1496 if (tlv_len < 2) {
1506 safeputs((const char *)tptr, tlv_len);
1516 safeputs((const char *)tptr, tlv_len);
1522 safeputs((const char *)tptr, tlv_len);
1534 if (tlv_len < 4) {
1548 if (!lldp_mgmt_addr_tlv_print(tptr, tlv_len)) {
1556 if (tlv_len < 3) {
1564 hexdump = lldp_private_8021_print(tptr, tlv_len);
1567 hexdump = lldp_private_8023_print(tptr, tlv_len);
1570 hexdump = lldp_private_tia_print(tptr, tlv_len);
1573 hexdump = lldp_private_dcbx_print(tptr, tlv_len);
1589 print_unknown_data(tptr,"\n\t ", tlv_len);
1592 tlen -= tlv_len;
1593 tptr += tlv_len;