Lines Matching refs:ie_p
690 static int fr_q933_print_ie_codeset5(const struct ie_tlv_header_t *ie_p,
693 typedef int (*codeset_pr_func_t)(const struct ie_tlv_header_t *ie_p,
720 struct ie_tlv_header_t *ie_p; in q933_print() local
764 ie_p = (struct ie_tlv_header_t *)ptemp; in q933_print()
766 length < sizeof(struct ie_tlv_header_t ) + ie_p->ie_len) { in q933_print()
779 tok2str(fr_q933_ie_codesets[codeset],"unknown",ie_p->ie_type), in q933_print()
780 ie_p->ie_type, in q933_print()
781 ie_p->ie_len); in q933_print()
784 if (ie_p->ie_type == 0 || ie_p->ie_len == 0) in q933_print()
788 ie_is_known = fr_q933_print_ie_codeset[codeset](ie_p, ptemp); in q933_print()
791 print_unknown_data(ptemp+2,"\n\t",ie_p->ie_len); in q933_print()
795 print_unknown_data(ptemp+2,"\n\t ",ie_p->ie_len); in q933_print()
797 length = length - ie_p->ie_len - 2; in q933_print()
798 ptemp = ptemp + ie_p->ie_len + 2; in q933_print()
805 fr_q933_print_ie_codeset5(const struct ie_tlv_header_t *ie_p, const u_char *p) in fr_q933_print_ie_codeset5() argument
809 switch (ie_p->ie_type) { in fr_q933_print_ie_codeset5()
832 if ((ie_p->ie_len < 3) || in fr_q933_print_ie_codeset5()
834 ((ie_p->ie_len == 3) && !(p[3] & 0x80)) || in fr_q933_print_ie_codeset5()
835 ((ie_p->ie_len == 4) && ((p[3] & 0x80) || !(p[4] & 0x80))) || in fr_q933_print_ie_codeset5()
836 ((ie_p->ie_len == 5) && ((p[3] & 0x80) || (p[4] & 0x80) || in fr_q933_print_ie_codeset5()
838 (ie_p->ie_len > 5) || in fr_q933_print_ie_codeset5()
839 !(p[ie_p->ie_len + 1] & 0x80)) in fr_q933_print_ie_codeset5()
843 if (ie_p->ie_len == 4) in fr_q933_print_ie_codeset5()
845 else if (ie_p->ie_len == 5) in fr_q933_print_ie_codeset5()
849 p[ie_p->ie_len + 1] & 0x8 ? "New, " : "", in fr_q933_print_ie_codeset5()
850 p[ie_p->ie_len + 1] & 0x2 ? "Active" : "Inactive"); in fr_q933_print_ie_codeset5()