#
8425624a |
| 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I8d0072c279e4de87dc001190845d0ca6da233345 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
099fb097 |
| 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I862ed296ce1f42dba7047a74540d9004ad78130c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
7b7f25f7 |
| 04-Jul-2022 |
George Liu <liuxiwei@inspur.com> |
logging: switch to lg2
After switching to C++20, it is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-b
logging: switch to lg2
After switching to C++20, it is recommended to use `phosphor::lg2` to format log, and the correct `CODE_LINE` and `CODE_FUNC` values can be used in log tracking.
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I4aabaafe997e13c10d655a83a9ef0071ad11126e
show more ...
|
#
bc8958fe |
| 03-Jul-2022 |
George Liu <liuxiwei@inspur.com> |
Update to latest clang-format
Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id:
Update to latest clang-format
Refer:https://github.com/openbmc/docs/blob/ac5d544553934f8083c61c5986a1420261bc8a4c/style/cpp/.clang-format
Signed-off-by: George Liu <liuxiwei@inspur.com> Change-Id: I1e06864afc29ce7de463e62fa2a0eb6f70e8fd93
show more ...
|
#
9979e997 |
| 07-Feb-2020 |
Rajashekar Gade Reddy <raja.sekhar.reddy.gade@linux.intel.com> |
Update the remote ip addr to session properties
Add remote ip address to session properties so that it is passed to ipmi-host. This will enable certain commands to know the remote ip address.
Teste
Update the remote ip addr to session properties
Add remote ip address to session properties so that it is passed to ipmi-host. This will enable certain commands to know the remote ip address.
Tested: Get session info command shows the remote ip address of the active sessions.
ipmitool -I lanplus -H <ip_addr> -U <user> -P <password> session info all session handle : 129 slot count : 45 active sessions : 1 user id : 1 privilege level : ADMINISTRATOR session type : IPMIv1.5 channel number : 0x03 console ip : <remote ip address> console mac : 00:00:00:00:00:00 console port : 50854
session handle : 0 slot count : 45 active sessions : 1
Signed-off-by: Rajashekar Gade Reddy <raja.sekhar.reddy.gade@linux.intel.com> Change-Id: I1a431437da97240941390322adc59acb2c5323d1
show more ...
|
#
86985d57 |
| 29-Nov-2019 |
Ivan Mikhaylov <i.mikhaylov@yadro.com> |
Fix: fix the access to sin/sin6_addr in getRemoteAddress
inet_ntop using 'remoteSockAddr' instead of casting it to 'sockaddr_in/in6' structure and getting the field 'sin/sin6_addr' access. As result
Fix: fix the access to sin/sin6_addr in getRemoteAddress
inet_ntop using 'remoteSockAddr' instead of casting it to 'sockaddr_in/in6' structure and getting the field 'sin/sin6_addr' access. As result of this 'getRemoteAddress' returns junk from top of the 'sockaddr_storage' structure.
Tested: Verified by calling 'getRemoteAddress' inside net-ipmi lambda handler.
[handler, this](const boost::system::error_code& ec, const IpmiDbusRspType& response) { ... std::string raddr = handler->getChannel()->getRemoteAddress(); some_func_for_put_addr(raddr); ... }
Signed-off-by: Ivan Mikhaylov <i.mikhaylov@yadro.com> Change-Id: Ia8ae2763a2ab372c148323974fe33ac44b1d28f0
show more ...
|
#
d92bc324 |
| 15-Mar-2019 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
spawn one rmcpp bridge per interface
According to the new architecture, each bridge should be a separate process, or at the very least, be attached on a separate D-Bus connection with a well-known n
spawn one rmcpp bridge per interface
According to the new architecture, each bridge should be a separate process, or at the very least, be attached on a separate D-Bus connection with a well-known name that corresponds to the channel name.
This commit brings netipmid to a state where it can be launched as: systemctl start phosphor-ipmi-net@eth0
with a parameterized unit file and socket file that binds the socket to the interface specified. If not launched this way, it will by default be bound to all interfaces.
This includes the new parameterized service and socket file and the autoconf/automake magic to install them to the correct place.
Tested-by: launch netipmid via current unit file/socket file launch netipmid via parameterize unit file/socket file
Change-Id: Ib202015fb560da269e535f11c0ac316b17f6c262 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
#
7a0142c5 |
| 09-Nov-2018 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
netipmid: move raw sockets to boost::asio sockets
Replacing the raw socket code with boost::asio sockets once again provides a simple API with fewer lines of code.
Change-Id: Ibdd4b5ecbead947128200
netipmid: move raw sockets to boost::asio sockets
Replacing the raw socket code with boost::asio sockets once again provides a simple API with fewer lines of code.
Change-Id: Ibdd4b5ecbead947128200f17025c351d9b3ec859 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
#
a65e30df |
| 26-Oct-2018 |
Patrick Venture <venture@google.com> |
style: cppcheck cleanup
[command/guid.cpp:37]: (style) The scope of the variable 'rc' can be reduced. [socket_channel.hpp:44]: (performance) Variable 'timeout' is assigned in constructor body. Consi
style: cppcheck cleanup
[command/guid.cpp:37]: (style) The scope of the variable 'rc' can be reduced. [socket_channel.hpp:44]: (performance) Variable 'timeout' is assigned in constructor body. Consider performing initialization in initialization list. [sd_event_loop.cpp:107]: (style) The scope of the variable 'instance' can be reduced. [sd_event_loop.cpp:108]: (style) The scope of the variable 'rc' can be reduced. [sd_event_loop.cpp:142]: (style) The scope of the variable 'instance' can be reduced. [sd_event_loop.cpp:304]: (style) The scope of the variable 'rc' can be reduced.
Change-Id: Id090cb217ea7ed9019f1b8d39ebebd6bb73113b1 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
9e801a2b |
| 12-Oct-2018 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
netipmid: apply clang-format rules
Lots of whitespace change. Let clang-format do its job and keep the code looking nice.
Change-Id: Idfcad1a99cab8170d55a06163de8ad3f420b68b7 Signed-off-by: Vernon
netipmid: apply clang-format rules
Lots of whitespace change. Let clang-format do its job and keep the code looking nice.
Change-Id: Idfcad1a99cab8170d55a06163de8ad3f420b68b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
#
70fd29cf |
| 30-Nov-2017 |
Vernon Mauery <vernon.mauery@linux.intel.com> |
explicit use of std::vector instead of buffer/Buffer
There were several scoped 'using buffer = std::vector<uint8_t>;' in header files. This consolidates the code base to use std::vector<uint8_t> ins
explicit use of std::vector instead of buffer/Buffer
There were several scoped 'using buffer = std::vector<uint8_t>;' in header files. This consolidates the code base to use std::vector<uint8_t> instead of buffer or Buffer. This makes the code easier to read and debug.
Change-Id: I918a0f6ca9b8e4b9d331175dccff45cbf4c8379d Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
show more ...
|
#
c0f5b5d2 |
| 09-Feb-2017 |
Tom Joseph <tomjoseph@in.ibm.com> |
Fix compilation errors for x86-64 SDK
Change-Id: Ia515f3bb6687a1bfc1c37fb33e37602ab9d91950 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
|
#
c35524e7 |
| 29-Aug-2016 |
Tom Joseph <tomjoseph@in.ibm.com> |
IPMI Main Handler
This patch contains the entry point for the IPMI RMCP Server. It registers the session setup commands and start the IPMI event handler.
Resolves openbmc/openbmc#429
Change-Id: I9
IPMI Main Handler
This patch contains the entry point for the IPMI RMCP Server. It registers the session setup commands and start the IPMI event handler.
Resolves openbmc/openbmc#429
Change-Id: I98a615eef9becb29964f8ec93e59d061bfcdfac3 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
show more ...
|
#
aaeb29e3 |
| 10-Aug-2016 |
Tom Joseph <tomjoseph@in.ibm.com> |
IPMI Socket Class to encapsulate the socket operations
This class represents the details regarding an IPMI client like IP address, port number and the file descriptor associated with it. The operati
IPMI Socket Class to encapsulate the socket operations
This class represents the details regarding an IPMI client like IP address, port number and the file descriptor associated with it. The operations provided are reading the UDP packet, writing the packet.
Change-Id: I58cde0edb04fd2fbedd3068de83379eebea8508d Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
show more ...
|