appcommands.cpp (e9baaff1437783d916e18b19d32d3b1fcb58e01a) | appcommands.cpp (2405ae98b39a97e9d7753d8dc5c673a4a8885b85) |
---|---|
1/* 2 * Copyright (c) 2018 Intel Corporation. 3 * Copyright (c) 2018-present Facebook. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * --- 8 unchanged lines hidden (view full) --- 17 18#include <fcntl.h> 19#include <ipmid/api.h> 20#include <sys/stat.h> 21#include <unistd.h> 22 23#include <appcommands.hpp> 24#include <commandutils.hpp> | 1/* 2 * Copyright (c) 2018 Intel Corporation. 3 * Copyright (c) 2018-present Facebook. 4 * 5 * Licensed under the Apache License, Version 2.0 (the "License"); 6 * you may not use this file except in compliance with the License. 7 * You may obtain a copy of the License at 8 * --- 8 unchanged lines hidden (view full) --- 17 18#include <fcntl.h> 19#include <ipmid/api.h> 20#include <sys/stat.h> 21#include <unistd.h> 22 23#include <appcommands.hpp> 24#include <commandutils.hpp> |
25#include <ipmid/api-types.hpp> 26#include <ipmid/api.hpp> |
|
25#include <nlohmann/json.hpp> 26#include <phosphor-logging/log.hpp> 27#include <sdbusplus/message/types.hpp> | 27#include <nlohmann/json.hpp> 28#include <phosphor-logging/log.hpp> 29#include <sdbusplus/message/types.hpp> |
28#include <ipmid/api.hpp> 29#include <ipmid/api-types.hpp> | |
30 31#include <fstream> 32#include <iomanip> 33#include <iostream> 34#include <sstream> 35 36namespace ipmi 37{ --- 270 unchanged lines hidden (view full) --- 308} 309 310//---------------------------------------------------------------------- 311// Set Sys Info Params (IPMI/Sec 22.14a) (CMD_APP_SET_SYS_INFO_PARAMS) 312//---------------------------------------------------------------------- 313ipmi::RspType<uint8_t> ipmiAppSetSysInfoParams(ipmi::Context::ptr ctx, 314 std::vector<uint8_t> req) 315{ | 30 31#include <fstream> 32#include <iomanip> 33#include <iostream> 34#include <sstream> 35 36namespace ipmi 37{ --- 270 unchanged lines hidden (view full) --- 308} 309 310//---------------------------------------------------------------------- 311// Set Sys Info Params (IPMI/Sec 22.14a) (CMD_APP_SET_SYS_INFO_PARAMS) 312//---------------------------------------------------------------------- 313ipmi::RspType<uint8_t> ipmiAppSetSysInfoParams(ipmi::Context::ptr ctx, 314 std::vector<uint8_t> req) 315{ |
316 | |
317 uint8_t param = req[0]; 318 uint8_t req_len = req.size(); 319 std::optional<size_t> hostId = findHost(ctx->hostIdx); 320 321 if (!hostId) 322 { 323 phosphor::logging::log<phosphor::logging::level::ERR>( 324 "Invalid Host Id received"); --- 198 unchanged lines hidden --- | 316 uint8_t param = req[0]; 317 uint8_t req_len = req.size(); 318 std::optional<size_t> hostId = findHost(ctx->hostIdx); 319 320 if (!hostId) 321 { 322 phosphor::logging::log<phosphor::logging::level::ERR>( 323 "Invalid Host Id received"); --- 198 unchanged lines hidden --- |