Lines Matching refs:tptr

649                         const u_char *tptr, u_int tlv_len)
659 subtype = *(tptr+3);
671 EXTRACT_16BITS(tptr + 4)));
678 EXTRACT_16BITS(tptr+5),
679 bittok2str(lldp_8021_port_protocol_id_values, "none", *(tptr+4)),
680 *(tptr + 4)));
686 ND_PRINT((ndo, "\n\t vlan id (VID): %u", EXTRACT_16BITS(tptr + 4)));
690 sublen = *(tptr+6);
695 safeputs(ndo, tptr + 7, sublen);
701 sublen = *(tptr+4);
706 safeputs(ndo, tptr + 5, sublen);
712 tval=*(tptr+4);
718 tval=*(tptr+5);
730 tval=*(tptr+4);
735 print_ets_priority_assignment_table(ndo, tptr + 5);
738 print_tc_bandwidth_table(ndo, tptr + 9);
741 print_tsa_assignment_table(ndo, tptr + 17);
749 ND_PRINT((ndo, "\n\t RES: %d", *(tptr + 4)));
751 print_ets_priority_assignment_table(ndo, tptr + 5);
753 print_tc_bandwidth_table(ndo, tptr + 9);
755 print_tsa_assignment_table(ndo, tptr + 17);
762 tval=*(tptr+4);
766 tval=*(tptr+5);
777 ND_PRINT((ndo, "\n\t RES: %d", *(tptr + 4)));
789 tval=*(tptr+i+5);
792 EXTRACT_16BITS(tptr + i + 5)));
801 tval=*(tptr+4);
805 tval=*(tptr+5);
808 tval=*(tptr+6);
810 tval=*(tptr+7);
814 tval=*(tptr+8);
822 tval=*(tptr+4);
825 ND_PRINT((ndo, "ChnCap: %d", EXTRACT_16BITS(tptr + 6) & 0x0fff));
832 tval=EXTRACT_24BITS(tptr+i+8);
852 const u_char *tptr, u_int tlv_len)
859 subtype = *(tptr+3);
871 bittok2str(lldp_8023_autonegotiation_values, "none", *(tptr+4)),
872 *(tptr + 4)));
874 bittok2str(lldp_pmd_capability_values,"unknown", EXTRACT_16BITS(tptr+5)),
875 EXTRACT_16BITS(tptr + 5)));
877 tok2str(lldp_mau_types_values, "unknown", EXTRACT_16BITS(tptr+7)),
878 EXTRACT_16BITS(tptr + 7)));
886 bittok2str(lldp_mdi_values, "none", *(tptr+4)),
887 tok2str(lldp_mdi_power_pairs_values, "unknown", *(tptr+5)),
888 tok2str(lldp_mdi_power_class_values, "unknown", *(tptr + 6))));
896 bittok2str(lldp_aggregation_values, "none", *(tptr+4)),
897 EXTRACT_32BITS(tptr + 5)));
904 ND_PRINT((ndo, "\n\t MTU size %u", EXTRACT_16BITS(tptr + 4)));
919 lldp_extract_latlon(const u_char *tptr)
923 latlon = *tptr & 0x3;
924 latlon = (latlon << 32) | EXTRACT_32BITS(tptr+1);
936 const u_char *tptr, u_int tlv_len)
943 subtype = *(tptr+3);
952 (void)fn_printn(ndo, tptr+4, tlv_len-4, NULL);
968 const u_char *tptr, u_int tlv_len)
979 subtype = *(tptr+3);
992 EXTRACT_16BITS(tptr + 4)), EXTRACT_16BITS(tptr + 4)));
994 tok2str(lldp_tia_device_type_values, "unknown", *(tptr+6)),
995 *(tptr + 6)));
1003 tok2str(lldp_tia_application_type_values, "none", *(tptr+4)),
1004 *(tptr + 4)));
1006 lldp_tia_network_policy_bits_values, "none", *(tptr + 5))));
1008 LLDP_EXTRACT_NETWORK_POLICY_VLAN(EXTRACT_16BITS(tptr + 5))));
1010 LLDP_EXTRACT_NETWORK_POLICY_L2_PRIORITY(EXTRACT_16BITS(tptr + 6))));
1012 LLDP_EXTRACT_NETWORK_POLICY_DSCP(EXTRACT_16BITS(tptr + 6))));
1019 location_format = *(tptr+4);
1030 (*(tptr + 5) >> 2), lldp_extract_latlon(tptr + 5)));
1032 (*(tptr + 10) >> 2), lldp_extract_latlon(tptr + 10)));
1034 tok2str(lldp_tia_location_altitude_type_values, "unknown",(*(tptr+15)>>4)),
1035 (*(tptr + 15) >> 4)));
1037 (EXTRACT_16BITS(tptr+15)>>6)&0x3f,
1038 ((EXTRACT_32BITS(tptr + 16) & 0x3fffffff))));
1040 tok2str(lldp_tia_location_datum_type_values, "unknown", *(tptr+20)),
1041 *(tptr + 20)));
1048 lci_len = *(tptr+5);
1057 tok2str(lldp_tia_location_lci_what_values, "unknown", *(tptr+6)),
1058 *(tptr + 6)));
1061 safeputs(ndo, tptr + 7, 2);
1064 tptr = tptr + 9;
1071 ca_type = *(tptr);
1072 ca_len = *(tptr+1);
1074 tptr += 2;
1089 safeputs(ndo, tptr, ca_len);
1090 tptr += ca_len;
1097 safeputs(ndo, tptr + 5, tlv_len - 5);
1102 print_unknown_data(ndo, tptr + 5, "\n\t ", tlv_len - 5);
1111 (*(tptr + 4) & 0xC0 >> 6) ? "PD device" : "PSE device"));
1113 tok2str(lldp_tia_power_source_values, "none", (*(tptr + 4) & 0x30) >> 4)));
1115 tok2str(lldp_tia_power_priority_values, "none", *(tptr+4)&0x0f),
1116 *(tptr + 4) & 0x0f));
1117 power_val = EXTRACT_16BITS(tptr+5);
1134 safeputs(ndo, tptr + 4, tlv_len - 4);
1157 const u_char *tptr, *mptr;
1172 tptr = pptr + 4;
1177 ND_TCHECK2(*tptr, sizeof(tlv));
1179 tlv = EXTRACT_16BITS(tptr);
1186 tptr += sizeof(tlv);
1193 ND_TCHECK2(*tptr, tlv_len);
1206 ND_PRINT((ndo, "\n\t Oper_Version: %d", *tptr));
1207 ND_PRINT((ndo, "\n\t Max_Version: %d", *(tptr + 1)));
1208 ND_PRINT((ndo, "\n\t Sequence Number: %d", EXTRACT_32BITS(tptr + 2)));
1210 EXTRACT_32BITS(tptr + 6)));
1218 ND_PRINT((ndo, "\n\t Oper_Version: %d", *tptr));
1219 ND_PRINT((ndo, "\n\t Max_Version: %d", *(tptr + 1)));
1220 ND_PRINT((ndo, "\n\t Info block(0x%02X): ", *(tptr + 2)));
1221 tval = *(tptr+2);
1225 ND_PRINT((ndo, "\n\t SubType: %d", *(tptr + 3)));
1232 pgval = EXTRACT_32BITS(tptr+4);
1239 ND_PRINT((ndo, "\n\t Pg percentage[%d]: %d", i, *(tptr + 8 + i)));
1240 ND_PRINT((ndo, "\n\t NumTCsSupported: %d", *(tptr + 8 + 8)));
1249 ND_PRINT((ndo, "\n\t Oper_Version: %d", *tptr));
1250 ND_PRINT((ndo, "\n\t Max_Version: %d", *(tptr + 1)));
1251 ND_PRINT((ndo, "\n\t Info block(0x%02X): ", *(tptr + 2)));
1252 tval = *(tptr+2);
1256 ND_PRINT((ndo, "\n\t SubType: %d", *(tptr + 3)));
1257 tval = *(tptr+4);
1258 ND_PRINT((ndo, "\n\t PFC Config (0x%02X)", *(tptr + 4)));
1262 ND_PRINT((ndo, "\n\t NumTCPFCSupported: %d", *(tptr + 5)));
1270 ND_PRINT((ndo, "\n\t Oper_Version: %d", *tptr));
1271 ND_PRINT((ndo, "\n\t Max_Version: %d", *(tptr + 1)));
1272 ND_PRINT((ndo, "\n\t Info block(0x%02X): ", *(tptr + 2)));
1273 tval = *(tptr+2);
1277 ND_PRINT((ndo, "\n\t SubType: %d", *(tptr + 3)));
1279 mptr = tptr + 4;
1301 print_unknown_data(ndo, tptr, "\n\t ", tlv_len);
1305 tptr += tlv_len;
1313 lldp_network_addr_print(netdissect_options *ndo, const u_char *tptr, u_int len)
1322 af = *tptr;
1351 tok2str(af_values, "Unknown", af), af, (*pfunc)(ndo, tptr+1));
1362 const u_char *tptr;
1367 tptr = pptr;
1372 mgmt_addr_len = *tptr++;
1379 mgmt_addr = lldp_network_addr_print(ndo, tptr, mgmt_addr_len);
1385 tptr += mgmt_addr_len;
1392 intf_num_subtype = *tptr;
1396 EXTRACT_32BITS(tptr + 1)));
1398 tptr += LLDP_INTF_NUM_LEN;
1405 oid_len = *tptr;
1412 safeputs(ndo, tptr + 1, oid_len);
1426 const u_char *tptr;
1429 tptr = pptr;
1436 ND_TCHECK2(*tptr, sizeof(tlv));
1438 tlv = EXTRACT_16BITS(tptr);
1445 tptr += sizeof(tlv);
1458 ND_TCHECK2(*tptr, tlv_len);
1470 subtype = *tptr;
1480 ND_PRINT((ndo, "%s", etheraddr_string(ndo, tptr + 1)));
1488 safeputs(ndo, tptr + 1, tlv_len - 1);
1492 network_addr = lldp_network_addr_print(ndo, tptr+1, tlv_len-1);
1511 subtype = *tptr;
1521 ND_PRINT((ndo, "%s", etheraddr_string(ndo, tptr + 1)));
1529 safeputs(ndo, tptr + 1, tlv_len - 1);
1533 network_addr = lldp_network_addr_print(ndo, tptr+1, tlv_len-1);
1552 ND_PRINT((ndo, ": TTL %us", EXTRACT_16BITS(tptr)));
1559 safeputs(ndo, tptr, tlv_len);
1569 safeputs(ndo, tptr, tlv_len);
1575 safeputs(ndo, tptr, tlv_len);
1590 cap = EXTRACT_16BITS(tptr);
1591 ena_cap = EXTRACT_16BITS(tptr+2);
1601 if (!lldp_mgmt_addr_tlv_print(ndo, tptr, tlv_len)) {
1612 oui = EXTRACT_24BITS(tptr);
1617 hexdump = lldp_private_8021_print(ndo, tptr, tlv_len);
1620 hexdump = lldp_private_8023_print(ndo, tptr, tlv_len);
1623 hexdump = lldp_private_iana_print(ndo, tptr, tlv_len);
1626 hexdump = lldp_private_tia_print(ndo, tptr, tlv_len);
1629 hexdump = lldp_private_dcbx_print(ndo, tptr, tlv_len);
1645 print_unknown_data(ndo, tptr, "\n\t ", tlv_len);
1649 tptr += tlv_len;