Lines Matching refs:tptr
258 const u_int8_t *tptr;
265 tptr = (u_int8_t *)lsap->lsa_un.un_unknown; /* squelch compiler warnings */
451 tptr = (u_int8_t *)(&lsap->lsa_un.un_ri_tlv.type);
454 TCHECK2(*tptr, 4);
459 tlv_type = EXTRACT_16BITS(tptr);
460 tlv_length = EXTRACT_16BITS(tptr+2);
461 tptr+=4;
475 TCHECK2(*tptr, tlv_length);
484 bittok2str(lsa_opaque_ri_tlv_cap_values, "Unknown", EXTRACT_32BITS(tptr)));
488 if(!print_unknown_data(tptr,"\n\t ",tlv_length))
494 tptr+=tlv_length;
499 tptr = (u_int8_t *)(&lsap->lsa_un.un_grace_tlv.type);
502 TCHECK2(*tptr, 4);
507 tlv_type = EXTRACT_16BITS(tptr);
508 tlv_length = EXTRACT_16BITS(tptr+2);
509 tptr+=4;
523 TCHECK2(*tptr, tlv_length);
531 printf("%us",EXTRACT_32BITS(tptr));
539 tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", *tptr),
540 *tptr);
547 printf("%s", ipaddr_string(tptr));
551 if(!print_unknown_data(tptr,"\n\t ",tlv_length))
557 tptr+=tlv_length;
562 tptr = (u_int8_t *)(&lsap->lsa_un.un_te_lsa_tlv.type);
565 TCHECK2(*tptr, 4);
570 tlv_type = EXTRACT_16BITS(tptr);
571 tlv_length = EXTRACT_16BITS(tptr+2);
572 tptr+=4;
594 TCHECK2(*tptr, 4);
595 subtlv_type = EXTRACT_16BITS(tptr);
596 subtlv_length = EXTRACT_16BITS(tptr+2);
597 tptr+=4;
605 TCHECK2(*tptr, subtlv_length);
608 printf(", 0x%08x", EXTRACT_32BITS(tptr));
613 ipaddr_string(tptr),
614 EXTRACT_32BITS(tptr));
617 ipaddr_string(tptr+4),
618 EXTRACT_32BITS(tptr+4));
622 printf(", %s", ipaddr_string(tptr));
626 bw.i = EXTRACT_32BITS(tptr);
631 bw.i = EXTRACT_32BITS(tptr+te_class*4);
639 tok2str(diffserv_te_bc_values, "unknown", *tptr),
640 *tptr);
643 bw.i = EXTRACT_32BITS(tptr+4+te_class*4);
650 printf(", Metric %u", EXTRACT_32BITS(tptr));
654 bittok2str(gmpls_link_prot_values, "none", *tptr),
655 *(tptr+1));
659 tok2str(gmpls_switch_cap_values, "Unknown", *(tptr)));
661 tok2str(gmpls_encoding_values, "Unknown", *(tptr+1)));
663 bw.i = EXTRACT_32BITS(tptr+4+(priority_level*4));
671 tok2str(lsa_opaque_te_tlv_link_type_sub_tlv_values,"unknown",*tptr),
672 *tptr);
680 bw.i = EXTRACT_32BITS(tptr);
682 tptr+=4;
691 if(!print_unknown_data(tptr,"\n\t\t",subtlv_length))
701 tptr+=subtlv_length;
711 TCHECK2(*tptr, 4);
712 printf(", %s", ipaddr_string(tptr));
717 if(!print_unknown_data(tptr,"\n\t ",tlv_length))
722 tptr+=tlv_length;