summaryrefslogtreecommitdiffstats
path: root/transporthandler.hpp
Commit message (Collapse)AuthorAgeFilesLines
* transporthandler: Rewrite + New HandlerWilliam A. Kennington III2019-09-271-141/+0
| | | | | | | | | | | | | | | | | | This rewrites the old transport handler to use the new ipmi handler registration functions. It attempts to clean up the old code, by refactoring any business logic out of the code that parses the IPMI messages. This makes the code paths easier to understand and allows for better code re-use. This also gets rid of the concept of the settings change timer. Clients expect to see their settings take effect as soon as they are set, regardless of the "Set In Progress" flag. This means we no longer need a cache for our network settings that are about to be set by the daemon, and a client can hold the BMC in "Set In Progress" while it verifies settings like other BMC implementations. Change-Id: I5406a674f087600afdfc2c0b3adeacde10986abc Signed-off-by: William A. Kennington III <wak@google.com>
* Added VLAN ID checking condition in Set LAN configSuryakanth Sekar2019-08-281-0/+3
| | | | | | | | | | According to the VLAN 802.1VLAN spec, VLAN ID should be 1-4095 Unit test: Verified VLAN ID 1-4095 is allowed and CC returns for 0 & > 4095 Signed-off-by: Suryakanth Sekar <suryakanth.sekar@linux.intel.com> Change-Id: I54bbc94c814c98dda11f8241fa31bfe0e5bbb150
* move types.hpp to ipmid/types.hpp for exportVernon Mauery2019-03-251-2/+1
| | | | | | | | | | types.hpp is required by utility.hpp, which is exported, so it needs to be exported as well. This moves it to the include/libipmid directory, changes the Makefile to export it, and changes all the files that include it so it can be found in the right place. Change-Id: I30ec365446e4de466c266ec4faa327478460ec05 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* transporthandler: Add IPV6 LAN parameters to enumPatrick Venture2019-02-021-3/+50
| | | | | | | | Add the IPV6 LAN parameters to the enum. These commands are not yet supported. Change-Id: I9847fe7c70ef66a2f0138ba79651376c011a2273 Signed-off-by: Patrick Venture <venture@google.com>
* transporthandler: LanParam enum -> enum classWilliam A. Kennington III2018-11-261-10/+10
| | | | | | | | | | | We should be using enum classes instead of enums to avoid poluting the global scope. Tested: Built and run through unit tests. Change-Id: Iec72f04b5cbf91814d0055c670bcc509eb30a821 Signed-off-by: William A. Kennington III <wak@google.com>
* transporthandler: Convert ints to enumWilliam A. Kennington III2018-11-261-11/+14
| | | | | | | | | | | | We want to be able to identify unique LanParams for each of the different sub-queries. These make more semantic sense as an enum than individual ints. Tested: Built and run through unit test suite. Change-Id: Ieb304f2f866215776e8d3e264b07ea110c639efc Signed-off-by: William A. Kennington III <wak@google.com>
* add .clang-formatPatrick Venture2018-09-071-10/+11
| | | | | Change-Id: I7c2a527b4751a560703a61fcbe9638b150546af5 Signed-off-by: Patrick Venture <venture@google.com>
* Implement RMCP+ cipher parameters in Get LAN Config parametersTom Joseph2018-04-181-0/+2
| | | | | Change-Id: Ic78965be94b1ba31149a05a29c1a768f06b492e4 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* SetLan: Apply the network changes once the timer expiresRatan Gupta2018-03-201-0/+18
| | | | | | | | | | | | Start the timer once the set in progress parameter set to set complete as part of Set LAN Configuration Parameters command. Resolves openbmc/openbmc#2932 Resolves openbmc/openbmc#2993 Change-Id: Ie6f3b331531da23c74fa44bb52fa1ddccffabd13 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* multiple channel configuration supportPatrick Venture2017-12-121-0/+10
| | | | | | | | | | | | | | Previously, the ipmi daemon only supported eth0 and hard-coded it to channel 1. This allows one to map via a configuration. The channel number provided is checked against a configuration to retrieve the ethernet device identifier, e.g. eth0. Tested: Ran on a quanta-q71l and was able to properly set MAC, IP, Netmask, Gateway IP, and then verified the data was set for the eth1 via `ip addr show eth1`. Change-Id: I92f63188297304e9454fd0d6fe32bc6cf84bb181 Signed-off-by: Patrick Venture <venture@google.com>
* transporthandler: lan_set_in_progress to per channelPatrick Venture2017-11-221-0/+7
| | | | | | | | | The IPMI specification indicates that this value is per channel, therefore goes in the channelconfig object. Change-Id: Iab5861651518ac80d797faa9d9f092933cc1886e Signed-off-by: Patrick Venture <venture@google.com>
* GetLan: Support for get/set of ipsrc parameterRatan Gupta2017-09-081-0/+3
| | | | | Change-Id: Id9c52bb0963c5924f80f9e273b53ed5556b16a2c Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Add support for vlan(set lan command)Ratan Gupta2017-08-131-1/+8
| | | | | | | Resolves openbmc/openbmc#1899 Change-Id: I3c436045676bc96e5d91fd9420509bc991549a13 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Move LAN handling commands to the new xyz interfacesRatan Gupta2017-08-131-0/+41
Change-Id: I4631c79c171883e5f0d531cfb5957a09496e4b3a Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
OpenPOWER on IntegriCloud