Home
last modified time | relevance | path

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

/xnu-11417.140.69/bsd/net/
H A Dnecp.c3403 u_int32_t total_tlv_len = 0; in necp_handle_policy_dump_all() local
3855 total_tlv_len += sizeof(u_int8_t) + sizeof(u_int32_t) + (cursor - tlv_buffer); in necp_handle_policy_dump_all()
3863 if (out_buffer_length < total_tlv_len + sizeof(u_int32_t)) { in necp_handle_policy_dump_all()
3864 …NECPLOG(LOG_DEBUG, "out_buffer_length too small (%lu < %lu)", out_buffer_length, total_tlv_len + s… in necp_handle_policy_dump_all()
3869 result_buf = (u_int8_t *)kalloc_data(total_tlv_len + sizeof(u_int32_t), Z_WAITOK | Z_ZERO); in necp_handle_policy_dump_all()
3871 …NECPLOG(LOG_DEBUG, "Failed to allocate result_buffer (%lu bytes)", total_tlv_len + sizeof(u_int32_… in necp_handle_policy_dump_all()
3876 memcpy(result_buf, &total_tlv_len, sizeof(u_int32_t)); in necp_handle_policy_dump_all()
3883 result_buf, total_tlv_len + sizeof(u_int32_t)); in necp_handle_policy_dump_all()
3887 int copy_error = copyout(result_buf, out_buffer, total_tlv_len + sizeof(u_int32_t)); in necp_handle_policy_dump_all()
3889 …NECPLOG(LOG_DEBUG, "Failed to copy out result_buffer (%lu bytes)", total_tlv_len + sizeof(u_int32_… in necp_handle_policy_dump_all()
[all …]