Treat link-local addresses as static when link
local autoconfig is disabled.

Although a link-local IP can be set via ipmitool (e.g.,
`ipmitool lan set 1 ipaddr 169.254.x.x`), it cannot be read back:
`ipmitool lan print 1` reports "IP Address : 0.0.0.0". That's because
phosphor-host-ipmid only considers static and DHCP addresses:

https://github.com/openbmc/phosphor-host-ipmid/blob/master/transporthandler.cpp#L52

Treating a link-local IP as static when autoconfiguration is disabled
allows it to be reported back by "ipmitool lan print".

TESTED: Built with `default-link-local-autoconf=false`. Set a link-local
ip via `ipmitool lan set 1 ipaddr` and verified it is correctly reported
back via `ipmitool lan print 1`.

Signed-off-by: Ali El-Haj-Mahmoud <aaelhaj@google.com>
Change-Id: I4f9871095b8b99dd7e7957babda39d89c5856be2
1 file changed
tree: 4969b68f4577b72e988f2055342a70561682cbac
  1. docs/
  2. gen/
  3. src/
  4. subprojects/
  5. test/
  6. yaml/
  7. .clang-format
  8. .gitignore
  9. .shellcheck
  10. LICENSE
  11. meson.build
  12. meson_options.txt
  13. OWNERS
  14. README.md
  15. xyz.openbmc_project.Network.conf.in
  16. xyz.openbmc_project.Network.service.in
README.md

To Build

To build this package, do the following steps:

    1. meson build
    2. ninja -C build