Lines Matching refs:attr_len
687 uint32_t seq_len, attr_len; in save_attr_seq() local
716 p = sdpu_get_len_from_type(p, p_msg_end, type, &attr_len); in save_attr_seq()
717 if (p == NULL || (p + attr_len) > p_seq_end) { in save_attr_seq()
718 SDP_TRACE_WARNING("%s: Bad len in attr_rsp %d", __func__, attr_len); in save_attr_seq()
721 if (((type >> 3) != UINT_DESC_TYPE) || (attr_len != 2)) { in save_attr_seq()
723 attr_len); in save_attr_seq()
793 uint32_t attr_len; in add_attr() local
804 p = sdpu_get_len_from_type(p, p_end, type, &attr_len); in add_attr()
805 if (p == NULL || (p + attr_len) > p_end) { in add_attr()
809 attr_len &= SDP_DISC_ATTR_LEN_MASK; in add_attr()
813 if (attr_len > 4) in add_attr()
814 total_len = attr_len - 4 + (uint16_t)sizeof(tSDP_DISC_ATTR); in add_attr()
818 p_attr_end = p + attr_len; in add_attr()
833 p_attr->attr_len_type = (uint16_t)attr_len | (attr_type << 12); in add_attr()
839 if ((is_additional_list != 0) && (attr_len == 2)) { in add_attr()
866 switch (attr_len) { in add_attr()
877 BE_STREAM_TO_ARRAY(p, p_attr->attr_value.v.array, (int32_t)attr_len); in add_attr()
883 switch (attr_len) { in add_attr()
890 attr_len = 2; in add_attr()
891 p_attr->attr_len_type = (uint16_t)attr_len | (attr_type << 12); in add_attr()
912 (int32_t)attr_len); in add_attr()
916 SDP_TRACE_WARNING("SDP - bad len in UUID attr: %d", attr_len); in add_attr()
950 BE_STREAM_TO_ARRAY(p, p_attr->attr_value.v.array, (int32_t)attr_len); in add_attr()
954 switch (attr_len) { in add_attr()
959 SDP_TRACE_WARNING("SDP - bad len in boolean attr: %d", attr_len); in add_attr()