diff options
author | Adriana Kobylak <anoo@us.ibm.com> | 2016-02-09 16:17:23 -0600 |
---|---|---|
committer | Adriana Kobylak <anoo@us.ibm.com> | 2016-02-09 16:26:22 -0600 |
commit | e08fbc6965178c54677112ce5e69a90092b27384 (patch) | |
tree | 32384cc5b1b97335f3a2be048201b11d3105406f /transporthandler.h | |
parent | 9355f612c185b2a09075572dd862b94d6d3e871c (diff) | |
download | phosphor-host-ipmid-e08fbc6965178c54677112ce5e69a90092b27384.tar.gz phosphor-host-ipmid-e08fbc6965178c54677112ce5e69a90092b27384.zip |
Address review comments for IPMI transport functions
Call get bus interface instead of using extern.
Define the IPMI request parameters.
Use snprintf.
Initialize dbus variables at the beginning of the function.
Diffstat (limited to 'transporthandler.h')
-rw-r--r-- | transporthandler.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/transporthandler.h b/transporthandler.h index 49b1d95..ce7842b 100644 --- a/transporthandler.h +++ b/transporthandler.h @@ -15,4 +15,13 @@ enum ipmi_transport_return_codes IPMI_CC_PARM_NOT_SUPPORTED = 0x80, }; +// Parameters +static const int LAN_PARM_INPROGRESS = 0; +static const int LAN_PARM_AUTHSUPPORT = 1; +static const int LAN_PARM_AUTHENABLES = 2; +static const int LAN_PARM_IP = 3; +static const int LAN_PARM_MAC = 5; +static const int LAN_PARM_SUBNET = 6; +static const int LAN_PARM_GATEWAY = 12; + #endif |