Lines Matching refs:attr_len
696 uint32_t seq_len, attr_len; in save_attr_seq() local
725 p = sdpu_get_len_from_type(p, p_msg_end, type, &attr_len); in save_attr_seq()
726 if (p == NULL || (p + attr_len) > p_seq_end) { in save_attr_seq()
727 SDP_TRACE_WARNING("%s: Bad len in attr_rsp %d", __func__, attr_len); in save_attr_seq()
730 if (((type >> 3) != UINT_DESC_TYPE) || (attr_len != 2)) { in save_attr_seq()
732 attr_len); in save_attr_seq()
802 uint32_t attr_len; in add_attr() local
813 p = sdpu_get_len_from_type(p, p_end, type, &attr_len); in add_attr()
814 if (p == NULL || (p + attr_len) > p_end) { in add_attr()
818 attr_len &= SDP_DISC_ATTR_LEN_MASK; in add_attr()
822 if (attr_len > 4) in add_attr()
823 total_len = attr_len - 4 + (uint16_t)sizeof(tSDP_DISC_ATTR); in add_attr()
827 p_attr_end = p + attr_len; in add_attr()
842 p_attr->attr_len_type = (uint16_t)attr_len | (attr_type << 12); in add_attr()
848 if ((is_additional_list != 0) && (attr_len == 2)) { in add_attr()
875 switch (attr_len) { in add_attr()
886 BE_STREAM_TO_ARRAY(p, p_attr->attr_value.v.array, (int32_t)attr_len); in add_attr()
892 switch (attr_len) { in add_attr()
899 attr_len = 2; in add_attr()
900 p_attr->attr_len_type = (uint16_t)attr_len | (attr_type << 12); in add_attr()
921 (int32_t)attr_len); in add_attr()
925 SDP_TRACE_WARNING("SDP - bad len in UUID attr: %d", attr_len); in add_attr()
959 BE_STREAM_TO_ARRAY(p, p_attr->attr_value.v.array, (int32_t)attr_len); in add_attr()
963 switch (attr_len) { in add_attr()
968 SDP_TRACE_WARNING("SDP - bad len in boolean attr: %d", attr_len); in add_attr()