ethernet_interface: Disable opportunistic DHCPv6 if disabled

Users who have DHCPv6 disabled do not expect that it becomes enabled
when an RA is received with the DHCP bit set. This syncs the DHCP
settings in systemd to remain consistent with the DHCP intention.

Change-Id: I4159a9c7ba987312e1fcc019170b9f33fe0f21dd
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/src/ethernet_interface.cpp b/src/ethernet_interface.cpp
index a68e646..711e3b5 100644
--- a/src/ethernet_interface.cpp
+++ b/src/ethernet_interface.cpp
@@ -1131,6 +1131,10 @@
     stream << "DHCP="s +
                   mapDHCPToSystemd[EthernetInterfaceIntf::dhcpEnabled()] + "\n";
 
+    stream << "[IPv6AcceptRA]\n";
+    stream << "DHCPv6Client=";
+    stream << (dhcpIsEnabled(IP::Protocol::IPv6) ? "true" : "false");
+
     // Static IP addresses
     for (const auto& addr : addrs)
     {