Lines Matching refs:pptr
568 static void osi_print_cksum(const u_int8_t *pptr, u_int16_t checksum,
773 static int clnp_print (const u_int8_t *pptr, u_int length) in clnp_print() argument
781 clnp_header = (const struct clnp_header_t *) pptr; in clnp_print()
785 optr = pptr; in clnp_print()
804 pptr += sizeof(struct clnp_header_t); in clnp_print()
806 dest_address_length = *pptr; in clnp_print()
807 dest_address = pptr + 1; in clnp_print()
809 pptr += (1 + dest_address_length); in clnp_print()
811 source_address_length = *pptr; in clnp_print()
812 source_address = pptr +1; in clnp_print()
814 pptr += (1 + source_address_length); in clnp_print()
850 clnp_segment_header = (const struct clnp_segment_header_t *) pptr; in clnp_print()
856 pptr+=sizeof(const struct clnp_segment_header_t); in clnp_print()
865 TCHECK2(*pptr, 2); in clnp_print()
870 op = *pptr++; in clnp_print()
871 opli = *pptr++; in clnp_print()
873 TCHECK2(*pptr, opli); in clnp_print()
879 tptr = pptr; in clnp_print()
969 print_unknown_data(pptr,"\n\t ",opli); in clnp_print()
970 pptr += opli; in clnp_print()
977 TCHECK(*pptr); in clnp_print()
978 if (*(pptr) == NLPID_CLNP) { in clnp_print()
981 clnp_print(pptr, length-clnp_header->length_indicator); in clnp_print()
991 if (length-(pptr-optr) > 0) { in clnp_print()
993 print_unknown_data(pptr,"\n\t ",length-(pptr-optr)); in clnp_print()
1028 esis_print(const u_int8_t *pptr, u_int length) in esis_print() argument
1045 esis_header = (const struct esis_header_t *) pptr; in esis_print()
1048 optr = pptr; in esis_print()
1072 printf("%02X", *pptr++); in esis_print()
1094 osi_print_cksum(pptr, EXTRACT_16BITS(esis_header->cksum), 7, li); in esis_print()
1101 pptr += sizeof(struct esis_header_t); in esis_print()
1109 TCHECK(*pptr); in esis_print()
1114 dstl = *pptr; in esis_print()
1115 pptr++; in esis_print()
1117 TCHECK2(*pptr, dstl); in esis_print()
1122 dst = pptr; in esis_print()
1123 pptr += dstl; in esis_print()
1127 TCHECK(*pptr); in esis_print()
1132 snpal = *pptr; in esis_print()
1133 pptr++; in esis_print()
1135 TCHECK2(*pptr, snpal); in esis_print()
1140 snpa = pptr; in esis_print()
1141 pptr += snpal; in esis_print()
1143 TCHECK(*pptr); in esis_print()
1148 netal = *pptr; in esis_print()
1149 pptr++; in esis_print()
1150 TCHECK2(*pptr, netal); in esis_print()
1155 neta = pptr; in esis_print()
1156 pptr += netal; in esis_print()
1167 TCHECK(*pptr); in esis_print()
1172 source_address_number = *pptr; in esis_print()
1173 pptr++; in esis_print()
1179 TCHECK(*pptr); in esis_print()
1184 source_address_length = *pptr; in esis_print()
1185 pptr++; in esis_print()
1188 TCHECK2(*pptr, source_address_length); in esis_print()
1195 isonsap_string(pptr,source_address_length)); in esis_print()
1196 pptr += source_address_length; in esis_print()
1204 TCHECK(*pptr); in esis_print()
1209 source_address_length = *pptr; in esis_print()
1210 pptr++; in esis_print()
1212 TCHECK2(*pptr, source_address_length); in esis_print()
1217 …printf("\n\t NET (length: %u): %s", source_address_length, isonsap_string(pptr, source_address_le… in esis_print()
1218 pptr += source_address_length; in esis_print()
1225 if (pptr < snapend) in esis_print()
1226 print_unknown_data(pptr,"\n\t ",snapend-pptr); in esis_print()
1240 TCHECK2(*pptr, 2); in esis_print()
1241 op = *pptr++; in esis_print()
1242 opli = *pptr++; in esis_print()
1249 tptr = pptr; in esis_print()
1260 TCHECK2(*pptr, 2); in esis_print()
1268 TCHECK(*pptr); in esis_print()
1297 print_unknown_data(pptr,"\n\t ",opli); in esis_print()
1298 pptr += opli; in esis_print()
2095 const u_int8_t *optr, *pptr, *tptr; in isis_print() local
2106 pptr = p+(ISIS_COMMON_HEADER_SIZE); in isis_print()
2107 header_iih_lan = (const struct isis_iih_lan_header *)pptr; in isis_print()
2108 header_iih_ptp = (const struct isis_iih_ptp_header *)pptr; in isis_print()
2109 header_lsp = (struct isis_lsp_header *)pptr; in isis_print()
2110 header_csnp = (const struct isis_csnp_header *)pptr; in isis_print()
2111 header_psnp = (const struct isis_psnp_header *)pptr; in isis_print()
2268 if(!print_unknown_data(pptr,"\n\t ",ISIS_IIH_LAN_HEADER_SIZE)) in isis_print()
2273 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_IIH_LAN_HEADER_SIZE); in isis_print()
2302 if(!print_unknown_data(pptr,"\n\t ",ISIS_IIH_PTP_HEADER_SIZE)) in isis_print()
2307 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_IIH_PTP_HEADER_SIZE); in isis_print()
2359 if(!print_unknown_data(pptr,"\n\t ",ISIS_LSP_HEADER_SIZE)) in isis_print()
2364 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_LSP_HEADER_SIZE); in isis_print()
2391 if(!print_unknown_data(pptr,"\n\t ",ISIS_CSNP_HEADER_SIZE)) in isis_print()
2396 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_CSNP_HEADER_SIZE); in isis_print()
2419 if(!print_unknown_data(pptr,"\n\t ",ISIS_PSNP_HEADER_SIZE)) in isis_print()
2424 pptr = p + (ISIS_COMMON_HEADER_SIZE+ISIS_PSNP_HEADER_SIZE); in isis_print()
2428 if(!print_unknown_data(pptr,"\n\t ",length)) in isis_print()
2438 if (pptr == snapend) { in isis_print()
2442 if (!TTEST2(*pptr, 2)) { in isis_print()
2444 (long)(pptr-snapend)); in isis_print()
2447 tlv_type = *pptr++; in isis_print()
2448 tlv_len = *pptr++; in isis_print()
2450 tptr = pptr; in isis_print()
2588 if (!isis_print_tlv_ip_reach(pptr, "\n\t ", tlv_len)) in isis_print()
2800 if (!TTEST2(*pptr, sizeof(struct in_addr))) in isis_print()
2802 printf("\n\t Traffic Engineering Router ID: %s", ipaddr_string(pptr)); in isis_print()
3061 if(!print_unknown_data(pptr,"\n\t\t",tlv_len)) in isis_print()
3068 if(!print_unknown_data(pptr,"\n\t ",tlv_len)) in isis_print()
3072 pptr += tlv_len; in isis_print()
3091 osi_print_cksum (const u_int8_t *pptr, u_int16_t checksum, in osi_print_cksum() argument
3100 calculated_checksum = create_osi_cksum(pptr, checksum_offset, length); in osi_print_cksum()