Lines Matching refs:ie_p

700 static int fr_q933_print_ie_codeset5(const struct ie_tlv_header_t  *ie_p,
703 typedef int (*codeset_pr_func_t)(const struct ie_tlv_header_t *ie_p,
730 struct ie_tlv_header_t *ie_p; in q933_print() local
778 ie_p = (struct ie_tlv_header_t *)ptemp; in q933_print()
780 length < sizeof(struct ie_tlv_header_t) + ie_p->ie_len) { in q933_print()
795 "unknown", ie_p->ie_type), in q933_print()
796 ie_p->ie_type, in q933_print()
797 ie_p->ie_len); in q933_print()
801 if (ie_p->ie_type == 0 || ie_p->ie_len == 0) { in q933_print()
806 ie_is_known = fr_q933_print_ie_codeset[codeset](ie_p, ptemp); in q933_print()
810 print_unknown_data(ptemp+2,"\n\t",ie_p->ie_len); in q933_print()
815 print_unknown_data(ptemp+2,"\n\t ",ie_p->ie_len); in q933_print()
818 length = length - ie_p->ie_len - 2; in q933_print()
819 ptemp = ptemp + ie_p->ie_len + 2; in q933_print()
827 fr_q933_print_ie_codeset5(const struct ie_tlv_header_t *ie_p, const u_char *p) in fr_q933_print_ie_codeset5() argument
831 switch (ie_p->ie_type) { in fr_q933_print_ie_codeset5()
857 if ((ie_p->ie_len < 3) || in fr_q933_print_ie_codeset5()
859 ((ie_p->ie_len == 3) && !(p[3] & 0x80)) || in fr_q933_print_ie_codeset5()
860 ((ie_p->ie_len == 4) && ((p[3] & 0x80) || !(p[4] & 0x80))) || in fr_q933_print_ie_codeset5()
861 ((ie_p->ie_len == 5) && ((p[3] & 0x80) || (p[4] & 0x80) || in fr_q933_print_ie_codeset5()
863 (ie_p->ie_len > 5) || in fr_q933_print_ie_codeset5()
864 !(p[ie_p->ie_len + 1] & 0x80)) { in fr_q933_print_ie_codeset5()
869 if (ie_p->ie_len == 4) { in fr_q933_print_ie_codeset5()
872 else if (ie_p->ie_len == 5) { in fr_q933_print_ie_codeset5()
877 p[ie_p->ie_len + 1] & 0x8 ? "New, " : "", in fr_q933_print_ie_codeset5()
878 p[ie_p->ie_len + 1] & 0x2 ? "Active" : "Inactive"); in fr_q933_print_ie_codeset5()