Lines Matching refs:pptr
562 static void osi_print_cksum(netdissect_options *, const uint8_t *pptr, uint16_t checksum,
762 const uint8_t *pptr, u_int length) in clnp_print() argument
770 clnp_header = (const struct clnp_header_t *) pptr; in clnp_print()
774 optr = pptr; in clnp_print()
793 pptr += sizeof(struct clnp_header_t); in clnp_print()
795 dest_address_length = *pptr; in clnp_print()
796 dest_address = pptr + 1; in clnp_print()
798 pptr += (1 + dest_address_length); in clnp_print()
800 source_address_length = *pptr; in clnp_print()
801 source_address = pptr +1; in clnp_print()
803 pptr += (1 + source_address_length); in clnp_print()
839 clnp_segment_header = (const struct clnp_segment_header_t *) pptr; in clnp_print()
845 pptr+=sizeof(const struct clnp_segment_header_t); in clnp_print()
854 ND_TCHECK2(*pptr, 2); in clnp_print()
859 op = *pptr++; in clnp_print()
860 opli = *pptr++; in clnp_print()
862 ND_TCHECK2(*pptr, opli); in clnp_print()
868 tptr = pptr; in clnp_print()
958 print_unknown_data(ndo, pptr, "\n\t ", opli); in clnp_print()
959 pptr += opli; in clnp_print()
966 ND_TCHECK(*pptr); in clnp_print()
967 if (*(pptr) == NLPID_CLNP) { in clnp_print()
970 clnp_print(ndo, pptr, length - clnp_header->length_indicator); in clnp_print()
980 if (length-(pptr-optr) > 0) { in clnp_print()
982 print_unknown_data(ndo, pptr, "\n\t ", length - (pptr - optr)); in clnp_print()
1018 const uint8_t *pptr, u_int length) in esis_print() argument
1032 esis_header = (const struct esis_header_t *) pptr; in esis_print()
1035 optr = pptr; in esis_print()
1058 while (pptr < ndo->ndo_snapend) in esis_print()
1059 ND_PRINT((ndo, "%02X", *pptr++)); in esis_print()
1081 osi_print_cksum(ndo, pptr, EXTRACT_16BITS(esis_header->cksum), 7, li); in esis_print()
1089 pptr += sizeof(struct esis_header_t); in esis_print()
1097 ND_TCHECK(*pptr); in esis_print()
1102 dstl = *pptr; in esis_print()
1103 pptr++; in esis_print()
1105 ND_TCHECK2(*pptr, dstl); in esis_print()
1110 dst = pptr; in esis_print()
1111 pptr += dstl; in esis_print()
1115 ND_TCHECK(*pptr); in esis_print()
1120 snpal = *pptr; in esis_print()
1121 pptr++; in esis_print()
1123 ND_TCHECK2(*pptr, snpal); in esis_print()
1128 snpa = pptr; in esis_print()
1129 pptr += snpal; in esis_print()
1131 ND_TCHECK(*pptr); in esis_print()
1136 netal = *pptr; in esis_print()
1137 pptr++; in esis_print()
1138 ND_TCHECK2(*pptr, netal); in esis_print()
1143 neta = pptr; in esis_print()
1144 pptr += netal; in esis_print()
1155 ND_TCHECK(*pptr); in esis_print()
1160 source_address_number = *pptr; in esis_print()
1161 pptr++; in esis_print()
1167 ND_TCHECK(*pptr); in esis_print()
1172 source_address_length = *pptr; in esis_print()
1173 pptr++; in esis_print()
1176 ND_TCHECK2(*pptr, source_address_length); in esis_print()
1183 isonsap_string(pptr, source_address_length))); in esis_print()
1184 pptr += source_address_length; in esis_print()
1192 ND_TCHECK(*pptr); in esis_print()
1197 source_address_length = *pptr; in esis_print()
1198 pptr++; in esis_print()
1200 ND_TCHECK2(*pptr, source_address_length); in esis_print()
1205 …ND_PRINT((ndo, "\n\t NET (length: %u): %s", source_address_length, isonsap_string(pptr, source_ad… in esis_print()
1206 pptr += source_address_length; in esis_print()
1213 if (pptr < ndo->ndo_snapend) in esis_print()
1214 print_unknown_data(ndo, pptr, "\n\t ", ndo->ndo_snapend - pptr); in esis_print()
1228 ND_TCHECK2(*pptr, 2); in esis_print()
1229 op = *pptr++; in esis_print()
1230 opli = *pptr++; in esis_print()
1237 tptr = pptr; in esis_print()
1248 ND_TCHECK2(*pptr, 2); in esis_print()
1256 ND_TCHECK(*pptr); in esis_print()
1285 print_unknown_data(ndo, pptr, "\n\t ", opli); in esis_print()
1286 pptr += opli; in esis_print()
2083 const uint8_t *optr, *pptr, *tptr; in isis_print() local
2094 pptr = p+(ISIS_COMMON_HEADER_SIZE); in isis_print()
2095 header_iih_lan = (const struct isis_iih_lan_header *)pptr; in isis_print()
2096 header_iih_ptp = (const struct isis_iih_ptp_header *)pptr; in isis_print()
2097 header_lsp = (struct isis_lsp_header *)pptr; in isis_print()
2098 header_csnp = (const struct isis_csnp_header *)pptr; in isis_print()
2099 header_psnp = (const struct isis_psnp_header *)pptr; in isis_print()
2256 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_IIH_LAN_HEADER_SIZE)) in isis_print()
2261 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_IIH_LAN_HEADER_SIZE); in isis_print()
2290 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_IIH_PTP_HEADER_SIZE)) in isis_print()
2295 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_IIH_PTP_HEADER_SIZE); in isis_print()
2348 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_LSP_HEADER_SIZE)) in isis_print()
2353 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_LSP_HEADER_SIZE); in isis_print()
2380 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_CSNP_HEADER_SIZE)) in isis_print()
2385 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_CSNP_HEADER_SIZE); in isis_print()
2408 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_PSNP_HEADER_SIZE)) in isis_print()
2413 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_PSNP_HEADER_SIZE); in isis_print()
2417 (void)print_unknown_data(ndo, pptr, "\n\t ", length); in isis_print()
2426 if (pptr == ndo->ndo_snapend) { in isis_print()
2430 if (!ND_TTEST2(*pptr, 2)) { in isis_print()
2432 (long)(pptr - ndo->ndo_snapend))); in isis_print()
2435 tlv_type = *pptr++; in isis_print()
2436 tlv_len = *pptr++; in isis_print()
2438 tptr = pptr; in isis_print()
2576 if (!isis_print_tlv_ip_reach(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
2788 if (!ND_TTEST2(*pptr, sizeof(struct in_addr))) in isis_print()
2790 ND_PRINT((ndo, "\n\t Traffic Engineering Router ID: %s", ipaddr_string(ndo, pptr))); in isis_print()
3048 if (!print_unknown_data(ndo, pptr, "\n\t\t", tlv_len)) in isis_print()
3055 if (!print_unknown_data(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
3059 pptr += tlv_len; in isis_print()
3079 const uint8_t *pptr, uint16_t checksum, in osi_print_cksum() argument
3097 … printf("\nosi_print_cksum: %p %u %u %u\n", pptr, checksum_offset, length, ndo->ndo_snaplen); in osi_print_cksum()
3098 ND_TCHECK2(pptr, checksum_offset+length); in osi_print_cksum()
3100 calculated_checksum = create_osi_cksum(pptr, checksum_offset, length); in osi_print_cksum()