summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorOskar Senft <osk@google.com>2018-12-04 13:53:16 -0500
committerOskar Senft <osk@google.com>2019-02-11 18:22:28 +0000
commit8f51109d8ecd3a396e935a9705b452fdb11cc614 (patch)
treec58464df696dc52b2862e54e433a820213b613e2 /configure.ac
parent695408618ed50ba886080b898aa77b980589ee4c (diff)
downloadipmi-fru-parser-8f51109d8ecd3a396e935a9705b452fdb11cc614.tar.gz
ipmi-fru-parser-8f51109d8ecd3a396e935a9705b452fdb11cc614.zip
readeeprom: Allow FRU ID 0 to be selected
We incorrectly checked that FRU ID != 0, which is the default FRU ID. Actually, the IPMI spec specifies FRU ID 0xff as reserved, so the check was changed to prevent that ID from being used instead. Split out fruid parsing code to its own function to cover various edge and failure cases. Tested: Ran 'phosphor-read-eeprom --eeprom fru.bin --fruid=0' and checked that values are reported to inventory as expected. Ran with '--fruid=ff' ('invalid' FRU ID): rejected Ran with '--fruid=xx' (non-HEX FRU ID): rejected Ran with '--fruid=100' (out-of-range FRU ID): rejected Ran with '--fruid="0 0"' (invalid number): rejected Ran with '--fruid=10.0' (non-integer): rejected Ran with '--fruid=0x12' (valid HEX FRU ID): accepted Ran with '--fruid=fe' (valid HEX FRU ID): accepted Change-Id: Ic1fb79cefc6931f21d0b5cb4363ad5fd44f47c92 Signed-off-by: Oskar Senft <osk@google.com>
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud