diff options
author | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-15 16:47:01 +1100 |
---|---|---|
committer | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-26 10:12:42 +1100 |
commit | 1e1e3417262e44531d2a5c6dd3152d5deb92fb90 (patch) | |
tree | 6f1a72b3595f63b9ccbd05b5fe7821b004f57797 /discover/ipmi.h | |
parent | 91ba67605de8ff5f15c335db4330594e07b5317e (diff) | |
download | talos-petitboot-1e1e3417262e44531d2a5c6dd3152d5deb92fb90.tar.gz talos-petitboot-1e1e3417262e44531d2a5c6dd3152d5deb92fb90.zip |
discover: Add support for IPMI network override
On BMC platforms the 'Get System Boot Options' command can also be used
to check for a temporary network interface config override. This is
implemented via the optional 'OEM Parameters' field defined in the IPMI
v2 spec. We define the actual format of the field as:
- 4 byte cookie value
- 2 byte version value
- 1 byte hardware address size
- 1 byte IP address size
- Hardware address
- 1 byte flags for 'ignore' and 'method'
And for static configs:
- IP Address
- 1 byte subnet value
- Gateway address
If set the config override replaces any other interface config, forcing
the use of the specified configuration.
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/ipmi.h')
-rw-r--r-- | discover/ipmi.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discover/ipmi.h b/discover/ipmi.h index 611cd49..85c91f4 100644 --- a/discover/ipmi.h +++ b/discover/ipmi.h @@ -38,4 +38,8 @@ int ipmi_transaction(struct ipmi *ipmi, uint8_t netfn, uint8_t cmd, uint8_t *resp_buf, uint16_t *resp_len, int timeout_ms); +void parse_ipmi_interface_override(struct config *config, uint8_t *buf, + uint16_t len); + + #endif /* _IPMI_H */ |