diff options
author | Nagaraju Goruganti <ngorugan@in.ibm.com> | 2017-09-21 07:40:26 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-10-12 14:46:11 +0000 |
commit | 24afe362dd2684998d5a9a681ddf6dbda0054f2b (patch) | |
tree | 2128af70f79b827e9170121b41bbb861dfb426c6 | |
parent | 66b974d2d679ece3aa67032bbc13ac166702cede (diff) | |
download | phosphor-networkd-24afe362dd2684998d5a9a681ddf6dbda0054f2b.tar.gz phosphor-networkd-24afe362dd2684998d5a9a681ddf6dbda0054f2b.zip |
Enable zeroconf while writing configuration file
Resolves openbmc/openbmc#2265
Change-Id: Idf8200fa92d82ee8de4f23e27a2816efae356ea0
Signed-off-by: Nagaraju Goruganti <ngorugan@in.ibm.com>
-rw-r--r-- | ethernet_interface.cpp | 1 | ||||
-rw-r--r-- | network_config.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp index 5a7c61c..15fc473 100644 --- a/ethernet_interface.cpp +++ b/ethernet_interface.cpp @@ -487,6 +487,7 @@ void EthernetInterface::writeConfigurationFile() // write the network section stream << "[" << "Network" << "]\n"; + stream << "LinkLocalAddressing=yes\n"; // Add the VLAN entry for (const auto& intf: vlanInterfaces) diff --git a/network_config.cpp b/network_config.cpp index 050be0a..d0aa2b4 100644 --- a/network_config.cpp +++ b/network_config.cpp @@ -16,7 +16,7 @@ namespace bmc filestream.open(filename); filestream << "[Match]\nName=" << interface << - "\n[Network]\nDHCP=true\n" + "\n[Network]\nDHCP=true\nLinkLocalAddressing=yes\n" "[DHCP]\nClientIdentifier=mac\n"; filestream.close(); } |