/* tipc_log_resize_cmd - reconfigure size of TIPC log buffer  */
struct sk_buff* tipc_log_resize_cmd(const void *req_tlv_area, int req_tlv_space)
/* tipc_log_resize_cmd - reconfigure size of TIPC log buffer  */
struct sk_buff* tipc_log_resize_cmd(const void *req_tlv_area, int req_tlv_space)
{
	u32 value;
	if (!TLV_CHECK(req_tlv_area, req_tlv_space, TIPC_TLV_UNSIGNED))
		return tipc_cfg_reply_error_string(TIPC_CFG_TLV_ERROR);
	value = ntohl(*(__be32 *)TLV_DATA(req_tlv_area));
	if (value != delimit(value, 0, 32768))
		return tipc_cfg_reply_error_string(TIPC_CFG_INVALID_VALUE
						   " (log size must be 0-32768)");
	if (tipc_log_resize(value))
		return tipc_cfg_reply_error_string(
			"unable to create specified log (log size is now 0)");
	return tipc_cfg_reply_none();
}