• Home
  • Raw
  • Download

Lines Matching refs:pptr

567 static int osi_print_cksum(netdissect_options *, const uint8_t *pptr,
768 const uint8_t *pptr, u_int length) in clnp_print() argument
776 clnp_header = (const struct clnp_header_t *) pptr; in clnp_print()
780 optr = pptr; in clnp_print()
801 while (pptr < ndo->ndo_snapend) in clnp_print()
802 ND_PRINT((ndo, "%02X", *pptr++)); in clnp_print()
811 pptr += sizeof(struct clnp_header_t); in clnp_print()
818 ND_TCHECK(*pptr); in clnp_print()
819 dest_address_length = *pptr; in clnp_print()
820 pptr += 1; in clnp_print()
826 ND_TCHECK2(*pptr, dest_address_length); in clnp_print()
827 dest_address = pptr; in clnp_print()
828 pptr += dest_address_length; in clnp_print()
835 ND_TCHECK(*pptr); in clnp_print()
836 source_address_length = *pptr; in clnp_print()
837 pptr += 1; in clnp_print()
843 ND_TCHECK2(*pptr, source_address_length); in clnp_print()
844 source_address = pptr; in clnp_print()
845 pptr += source_address_length; in clnp_print()
886 clnp_segment_header = (const struct clnp_segment_header_t *) pptr; in clnp_print()
892 pptr+=sizeof(const struct clnp_segment_header_t); in clnp_print()
905 ND_TCHECK2(*pptr, 2); in clnp_print()
906 op = *pptr++; in clnp_print()
907 opli = *pptr++; in clnp_print()
913 ND_TCHECK2(*pptr, opli); in clnp_print()
915 tptr = pptr; in clnp_print()
1033 print_unknown_data(ndo, pptr, "\n\t ", opli); in clnp_print()
1034 pptr += opli; in clnp_print()
1041 ND_TCHECK(*pptr); in clnp_print()
1042 if (*(pptr) == NLPID_CLNP) { in clnp_print()
1045 clnp_print(ndo, pptr, length - clnp_header->length_indicator); in clnp_print()
1055 if (length-(pptr-optr) > 0) { in clnp_print()
1057 print_unknown_data(ndo, pptr, "\n\t ", length - (pptr - optr)); in clnp_print()
1093 const uint8_t *pptr, u_int length) in esis_print() argument
1107 esis_header = (const struct esis_header_t *) pptr; in esis_print()
1110 optr = pptr; in esis_print()
1133 while (pptr < ndo->ndo_snapend) in esis_print()
1134 ND_PRINT((ndo, "%02X", *pptr++)); in esis_print()
1156 if (osi_print_cksum(ndo, pptr, EXTRACT_16BITS(esis_header->cksum), 7, li) == 0) in esis_print()
1165 pptr += sizeof(struct esis_header_t); in esis_print()
1173 ND_TCHECK(*pptr); in esis_print()
1178 dstl = *pptr; in esis_print()
1179 pptr++; in esis_print()
1181 ND_TCHECK2(*pptr, dstl); in esis_print()
1186 dst = pptr; in esis_print()
1187 pptr += dstl; in esis_print()
1191 ND_TCHECK(*pptr); in esis_print()
1196 snpal = *pptr; in esis_print()
1197 pptr++; in esis_print()
1199 ND_TCHECK2(*pptr, snpal); in esis_print()
1204 snpa = pptr; in esis_print()
1205 pptr += snpal; in esis_print()
1207 ND_TCHECK(*pptr); in esis_print()
1212 netal = *pptr; in esis_print()
1213 pptr++; in esis_print()
1214 ND_TCHECK2(*pptr, netal); in esis_print()
1219 neta = pptr; in esis_print()
1220 pptr += netal; in esis_print()
1231 ND_TCHECK(*pptr); in esis_print()
1236 source_address_number = *pptr; in esis_print()
1237 pptr++; in esis_print()
1243 ND_TCHECK(*pptr); in esis_print()
1248 source_address_length = *pptr; in esis_print()
1249 pptr++; in esis_print()
1252 ND_TCHECK2(*pptr, source_address_length); in esis_print()
1259 isonsap_string(ndo, pptr, source_address_length))); in esis_print()
1260 pptr += source_address_length; in esis_print()
1268 ND_TCHECK(*pptr); in esis_print()
1273 source_address_length = *pptr; in esis_print()
1274 pptr++; in esis_print()
1276 ND_TCHECK2(*pptr, source_address_length); in esis_print()
1281 … "\n\t NET (length: %u): %s", source_address_length, isonsap_string(ndo, pptr, source_address_len… in esis_print()
1282 pptr += source_address_length; in esis_print()
1289 if (pptr < ndo->ndo_snapend) in esis_print()
1290 print_unknown_data(ndo, pptr, "\n\t ", ndo->ndo_snapend - pptr); in esis_print()
1304 ND_TCHECK2(*pptr, 2); in esis_print()
1305 op = *pptr++; in esis_print()
1306 opli = *pptr++; in esis_print()
1313 tptr = pptr; in esis_print()
1324 ND_TCHECK2(*pptr, 2); in esis_print()
1332 ND_TCHECK(*pptr); in esis_print()
1361 print_unknown_data(ndo, pptr, "\n\t ", opli); in esis_print()
1362 pptr += opli; in esis_print()
2156 const uint8_t *optr, *pptr, *tptr; in isis_print() local
2167 pptr = p+(ISIS_COMMON_HEADER_SIZE); in isis_print()
2168 header_iih_lan = (const struct isis_iih_lan_header *)pptr; in isis_print()
2169 header_iih_ptp = (const struct isis_iih_ptp_header *)pptr; in isis_print()
2170 header_lsp = (const struct isis_lsp_header *)pptr; in isis_print()
2171 header_csnp = (const struct isis_csnp_header *)pptr; in isis_print()
2172 header_psnp = (const struct isis_psnp_header *)pptr; in isis_print()
2334 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_IIH_LAN_HEADER_SIZE)) in isis_print()
2339 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_IIH_LAN_HEADER_SIZE); in isis_print()
2368 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_IIH_PTP_HEADER_SIZE)) in isis_print()
2373 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_IIH_PTP_HEADER_SIZE); in isis_print()
2418 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_LSP_HEADER_SIZE)) in isis_print()
2423 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_LSP_HEADER_SIZE); in isis_print()
2450 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_CSNP_HEADER_SIZE)) in isis_print()
2455 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_CSNP_HEADER_SIZE); in isis_print()
2478 if (!print_unknown_data(ndo, pptr, "\n\t ", ISIS_PSNP_HEADER_SIZE)) in isis_print()
2483 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_PSNP_HEADER_SIZE); in isis_print()
2487 (void)print_unknown_data(ndo, pptr, "\n\t ", length); in isis_print()
2496 if (pptr == ndo->ndo_snapend) { in isis_print()
2500 ND_TCHECK2(*pptr, 2); in isis_print()
2501 tlv_type = *pptr++; in isis_print()
2502 tlv_len = *pptr++; in isis_print()
2504 tptr = pptr; in isis_print()
2635 if (!isis_print_tlv_ip_reach(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
2827 ND_TCHECK2(*pptr, sizeof(struct in_addr)); in isis_print()
2828 ND_PRINT((ndo, "\n\t Traffic Engineering Router ID: %s", ipaddr_string(ndo, pptr))); in isis_print()
3075 if (!print_unknown_data(ndo, pptr, "\n\t\t", tlv_len)) in isis_print()
3082 if (!print_unknown_data(ndo, pptr, "\n\t ", tlv_len)) in isis_print()
3086 pptr += tlv_len; in isis_print()
3106 osi_print_cksum(netdissect_options *ndo, const uint8_t *pptr, in osi_print_cksum() argument
3126 … printf("\nosi_print_cksum: %p %u %u %u\n", pptr, checksum_offset, length, ndo->ndo_snaplen); in osi_print_cksum()
3128 ND_TCHECK2(*pptr, length); in osi_print_cksum()
3129 calculated_checksum = create_osi_cksum(pptr, checksum_offset, length); in osi_print_cksum()