Merge pull request #13168 from ssahani/fix-dhcp-route-no-parsing

network: fix DHCP route rumber parsing.
This commit is contained in:
Lennart Poettering 2019-07-24 16:42:18 +02:00 committed by GitHub
commit 372901d071
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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 */