Implement Network Settings Override

We want to implement the network settings override functionality.
This is an OEM boot parameter selector, using parameter ID 0x61.

The first byte of the parameter data is the same as parameter ID 5 (ie,
the valid flag in the top bit). Persistency doesn't matter here, as
petitboot will not clear out this setting.

The rest of the parameter data is a host network settings description.
For other BMC firmware, the BMC just treats this as opaque (the BMC will
just return the same data (including that data1 byte), in response to a
Get System Boot Option). For OpenBMC, we may want the BMC to know how to
construct that data; the spec for that is at:

http://ozlabs.org/~sam/ipmi-network-format

Closes openbmc/openbmc#267

Change-Id: I2af8776718deda97acf90d10504783085ccf7323
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
diff --git a/chassishandler.h b/chassishandler.h
index b6f7d93..e47b4a1 100644
--- a/chassishandler.h
+++ b/chassishandler.h
@@ -2,6 +2,7 @@
 #define __HOST_IPMI_CHASSIS_HANDLER_H__
 
 #include <stdint.h>
+#include <cstddef>
 
 // IPMI commands for Chassis net functions.
 enum ipmi_netfn_app_cmds
@@ -37,5 +38,16 @@
 	CMD_PULSE_DIAGNOSTIC_INTR  = 0x04,
 	CMD_SOFT_OFF_VIA_OVER_TEMP = 0x05,
 };
+enum class BootOptionParameter : size_t
+{
+    BOOT_FLAGS                    = 0x5,
+    OPAL_NETWORK_SETTINGS         = 0x61
+};
+
+enum class BootOptionResponseSize : size_t
+{
+    BOOT_FLAGS                    = 5,
+    OPAL_NETWORK_SETTINGS         = 26 
+};
 
 #endif