]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: fix DHCP route rumber parsing. 13168/head
authorSusant Sahani <ssahani@vmware.com>
Wed, 24 Jul 2019 11:26:31 +0000 (16:56 +0530)
committerSusant Sahani <ssahani@vmware.com>
Wed, 24 Jul 2019 12:36:30 +0000 (18:06 +0530)
src/network/networkd-dhcp-common.c

index 81edb8c7aaa3694a36bdf248a421dff914d6efed..d958d11d01e439ad9ea3009bb30eb4e746fe5df2 100644 (file)
@@ -4,6 +4,7 @@
 #include "networkd-network.h"
 #include "parse-util.h"
 #include "string-table.h"
+#include "strv.h"
 
 int config_parse_dhcp(
                 const char* unit,
@@ -151,7 +152,7 @@ int config_parse_section_route_table(
                 return 0;
         }
 
-        if (streq_ptr(section, "DHCP")) {
+        if (STRPTR_IN_SET(section, "DHCP", "DHCPv4")) {
                 network->dhcp_route_table = rt;
                 network->dhcp_route_table_set = true;
         } else { /* section is IPv6AcceptRA */