Return 'enable' bit false for Get LAN Config Param 56 & 59
The IPMI Get LAN Config Parameter 56 and 59 have different bit
definitions for data byte 2. The Static IPv6 (Param 56) defines bit 7
as the 'enable' bit. Param 59 reserves bit 7.
Tested:
Assigned a static IPv6 address
'ipmitool raw 0xc 2 <nic> 56 0 0' data byte 2 returns 0x80
'ipmitool raw 0xc 2 <nic> 59 0 0' data byte 2 returns 0x00
Assigned DHCP IPv6
'ipmitool raw 0xc 2 <nic> 56 0 0' data byte 2 returns 0x00
'ipmitool raw 0xc 2 <nic> 59 0 0' data byte 2 returns 0x02
Change-Id: I1f5a8cd3ea70088bbd94d0e51805a9c5a1a168fa
Signed-off-by: Johnathan Mantey <johnathanx.mantey@intel.com>
diff --git a/transporthandler.cpp b/transporthandler.cpp
index 7d33b01..0aae64c 100644
--- a/transporthandler.cpp
+++ b/transporthandler.cpp
@@ -514,7 +514,7 @@
if (ifaddr)
{
source = originToSourceType(ifaddr->origin);
- enabled = true;
+ enabled = (origins == originsV6Static);
addr = ifaddr->address;
prefix = ifaddr->prefix;
status = IPv6AddressStatus::Active;