diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-11-14 20:58:38 +0530 |
---|---|---|
committer | Ratan Gupta <ratagupt@in.ibm.com> | 2017-11-14 20:58:38 +0530 |
commit | 603598de183757241b900b90e45f91049ea1a840 (patch) | |
tree | 0f124580fd2d2ddda0d2c4c125d0ca4d7e15c339 | |
parent | 2003743e1be31104387a8589e959d6801eb99316 (diff) | |
download | phosphor-networkd-603598de183757241b900b90e45f91049ea1a840.tar.gz phosphor-networkd-603598de183757241b900b90e45f91049ea1a840.zip |
Initialize the IP address origin property correctly
During creation of IP address objects, We determine the ipaddress origin
and if the first address is link local then the origin property was not
changed for other static addresses.
Change-Id: Iacea6393121271327be5c79206492422b5d21a73
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
-rw-r--r-- | ethernet_interface.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp index f9cc4e4..7230706 100644 --- a/ethernet_interface.cpp +++ b/ethernet_interface.cpp @@ -103,6 +103,8 @@ void EthernetInterface::createIPAddressObjects() origin, addr.prefix, gateway)); + + origin = IP::AddressOrigin::Static; } } |