summaryrefslogtreecommitdiffstats
path: root/ipmid.C
Commit message (Collapse)AuthorAgeFilesLines
* ipmid: Fix crash on scandir failureJeremy Kerr2015-10-291-0/+3
| | | | | | | | | | | | | | Curently, if I have no ipmi_lib_path, ipmid crashes: $ ./ipmid Registering handler:[/usr/lib/host-ipmid/H��dH�%(] ERROR opening [/usr/lib/host-ipmid/H��dH�%(]: /usr/lib/host-ipmid/H��dH�%(: cannot open shared object file: No such file or directory *** Error in `./ipmid': munmap_chunk(): invalid pointer: 0x0000000000401eb6 *** Aborted (core dumped) We need to check for the error case of a scandir(). Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* ipmid: Use updated dbus HostIpmi interfaceJeremy Kerr2015-10-291-6/+7
| | | | | | | | | | | With the updated HostIpmi dbus interface, netfns are not packed with LUNs, and the CC is separate from the data. This means we no longer have to define NETFN_* as arbitrarily shifted, and we have the added bonus of replying to messages where lun != 0. We may want to separate the CC returned from the handlers in future too. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* ipmid: Remove assumptions about host IPMI sender objectsJeremy Kerr2015-10-291-10/+8
| | | | | | | | | | | | Currently, the IPMI daemon will only receive messages from a specific (arbitrary) object path that the debug daemon used. Instead, we should be listening to any signal that matches our interface (org.openbmc.HostIpmi.ReceivedMessage). When replying to the message, we should be using the signal sender info to properly address the reply method. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
* Reduce prints to journald from ipmi but keep ability to traceChris Austen2015-10-281-38/+53
| | | | | | support for hex values with cli argument Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Allow esels to be sent to dbus event logChris Austen2015-10-281-4/+2
| | | | Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Added Dynamic lookup for sensor typesChris Austen2015-10-221-27/+47
| | | | | | | Fixed bug where ipmi sensor readings > offset 7 where not asserted Added testcases for code Kept sensors 35,37-3A hardcoded until dbus side decides if they want to represent them.
* Add virtual sensor supportChris Austen2015-10-191-0/+44
|
* Add routines for getting lookup data from the system dbus objectChris Austen2015-10-191-0/+121
|
* Print the dlopen failure for debuggingChris Austen2015-10-191-18/+18
|
* Reset the lib path string per .soChris Austen2015-10-131-3/+4
|
* Set response bit returning from the ipmi callChris Austen2015-10-131-2/+2
|
* Convert to SDBusChris Austen2015-10-131-109/+210
|
* Using SYSTEM_BUS than SESSION_BUSvishwabmc2015-10-091-1/+1
|
* Final IPMI Net Function routervishwabmc2015-10-091-0/+326
OpenPOWER on IntegriCloud