mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
Merge pull request #13168 from ssahani/fix-dhcp-route-no-parsing
network: fix DHCP route rumber parsing.
This commit is contained in:
commit
372901d071
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue