Home
last modified time | relevance | path

Searched refs:total_tlv_len (Results 1 – 1 of 1) sorted by relevance

/xnu-12377.41.6/bsd/net/
H A Dnecp.c3327 u_int32_t total_tlv_len = 0; in necp_handle_policy_dump_all() local
3779 total_tlv_len += sizeof(u_int8_t) + sizeof(u_int32_t) + (cursor - tlv_buffer); in necp_handle_policy_dump_all()
3787 if (out_buffer_length < total_tlv_len + sizeof(u_int32_t)) { in necp_handle_policy_dump_all()
3788 …NECPLOG(LOG_DEBUG, "out_buffer_length too small (%lu < %lu)", out_buffer_length, total_tlv_len + s… in necp_handle_policy_dump_all()
3793 result_buf = (u_int8_t *)kalloc_data(total_tlv_len + sizeof(u_int32_t), Z_WAITOK | Z_ZERO); in necp_handle_policy_dump_all()
3795 …NECPLOG(LOG_DEBUG, "Failed to allocate result_buffer (%lu bytes)", total_tlv_len + sizeof(u_int32_… in necp_handle_policy_dump_all()
3800 memcpy(result_buf, &total_tlv_len, sizeof(u_int32_t)); in necp_handle_policy_dump_all()
3807 result_buf, total_tlv_len + sizeof(u_int32_t)); in necp_handle_policy_dump_all()
3811 int copy_error = copyout(result_buf, out_buffer, total_tlv_len + sizeof(u_int32_t)); in necp_handle_policy_dump_all()
3813 …NECPLOG(LOG_DEBUG, "Failed to copy out result_buffer (%lu bytes)", total_tlv_len + sizeof(u_int32_… in necp_handle_policy_dump_all()
[all …]