]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
networkd: change SendRelease default to true
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 1 Oct 2019 15:25:31 +0000 (17:25 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 2 Oct 2019 12:01:42 +0000 (14:01 +0200)
Now that we don't drop DHCP config on restart, this seems appropriate.

man/systemd.network.xml
src/network/networkd-network.c

index cd86a4f4be51cd0538700465034453a6a6456706..aa53eb0c0c31b07434f651ead38daa7cfdeabb19 100644 (file)
           <term><varname>SendRelease=</varname></term>
           <listitem>
             <para>When true, the DHCPv4 client sends a DHCP release packet when it stops.
-            Defaults to false.</para>
+            Defaults to true.</para>
           </listitem>
         </varlistentry>
 
index a1f285b8e5c39b5b608e7fdc91d59942530a6d0f..3ea76a034a6edf4d1aa7a1e3d2d01c52e08cdfe6 100644 (file)
@@ -371,6 +371,7 @@ int network_load_one(Manager *manager, const char *filename) {
                 .dhcp_use_routes = true,
                 /* NOTE: this var might be overwritten by network_apply_anonymize_if_set */
                 .dhcp_send_hostname = true,
+                .dhcp_send_release = true,
                 /* To enable/disable RFC7844 Anonymity Profiles */
                 .dhcp_anonymize = false,
                 .dhcp_route_metric = DHCP_ROUTE_METRIC,