Lines Matching refs:attr_len
399 UINT32 attr_len, UINT8 *p_val)
416 UINT32 len = (attr_len > 200) ? 200 : attr_len;
424 handle,attr_id,attr_type,attr_len,p_val,num_array);
429 handle,attr_id,attr_type,attr_len,p_val,*p_val);
434 handle,attr_id,attr_type,attr_len,p_val,p_val);
474 p_attr->len = attr_len;
476 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN)
481 SDP_TRACE_WARNING2("SDP_AddAttribute: attr_len:%d too long. truncate to (%d)",
482 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr );
484 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr;
489 attr_len = 0;
492 if ((attr_len > 0) && (p_val != 0))
494 p_attr->len = attr_len;
495 memcpy (&p_rec->attr_pad[p_rec->free_pad_ptr], p_val, (size_t)attr_len);
497 p_rec->free_pad_ptr += attr_len;
499 else if ((attr_len == 0 && p_attr->len != 0) || /* if truncate to 0 length, simply don't add */
502 SDP_TRACE_ERROR2("SDP_AddAttribute fail, length exceed maximum: ID %d: attr_len:%d ",
503 attr_id, attr_len );