summaryrefslogtreecommitdiffstats
path: root/ethernet_interface.cpp
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-08-18 06:12:26 +0530
committerPatrick Williams <patrick@stwcx.xyz>2017-08-24 18:48:00 +0000
commitc35481dbdbd8e99c47f1be5f24e3eef2d8c442e3 (patch)
treeb7a34a2426b4b1bbdce8a181e6932d9080e8cc0c /ethernet_interface.cpp
parent26e87a0eb3568b4aff8dbaa99a18d68f39f75600 (diff)
downloadphosphor-networkd-c35481dbdbd8e99c47f1be5f24e3eef2d8c442e3.tar.gz
phosphor-networkd-c35481dbdbd8e99c47f1be5f24e3eef2d8c442e3.zip
Change the dhcp configuration parameters default value to true
set the link local addressing to yes so that the interface gets the zeroconfig ip, if unable to get the ip from DHCP server. Change-Id: I7e5351662c45863e3d15d49151bfdfb8d9096e11 Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ethernet_interface.cpp')
-rw-r--r--ethernet_interface.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp
index f31c210..ac138f3 100644
--- a/ethernet_interface.cpp
+++ b/ethernet_interface.cpp
@@ -50,7 +50,7 @@ EthernetInterface::EthernetInterface(sdbusplus::bus::bus& bus,
auto intfName = objPath.substr(objPath.rfind("/") + 1);
std::replace(intfName.begin(), intfName.end(), '_', '.');
interfaceName(intfName);
- dHCPEnabled(dhcpEnabled);
+ EthernetInterfaceIntf::dHCPEnabled(dhcpEnabled);
mACAddress(getMACAddress(intfName));
// Emit deferred signal.
@@ -426,6 +426,7 @@ void EthernetInterface::writeConfigurationFile()
// write the network section
stream << "[" << "Network" << "]\n";
+ stream << "LinkLocalAddressing=yes\n";
// DHCP
if (dHCPEnabled() == true)
{
OpenPOWER on IntegriCloud