summaryrefslogtreecommitdiff
path: root/src/network/networkd-network.c
diff options
context:
space:
mode:
authorEugene Yakubovich <eyakubovich@gmail.com>2014-06-27 15:00:06 -0700
committerTom Gundersen <teg@jklm.no>2014-06-29 15:18:21 +0200
commite1ea665edac17d75fce01b72dadfa3211b60df2c (patch)
tree9f1d4c8ae93862cf5ebae973cd48d053ef34c0dd /src/network/networkd-network.c
parented942a9eb22d50f667909ad6184b45015d28d054 (diff)
Add support for DHCP static route options
This adds support for DHCP options 33 and 121: Static Route and Classless Static Route. To enable this feature, set UseRoutes=true in .network file. Returned routes are added to the routing table.
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r--src/network/networkd-network.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c
index 8e7cdf670b..f60f7c812c 100644
--- a/src/network/networkd-network.c
+++ b/src/network/networkd-network.c
@@ -89,6 +89,7 @@ static int network_load_one(Manager *manager, const char *filename) {
network->dhcp_dns = true;
network->dhcp_hostname = true;
network->dhcp_domainname = true;
+ network->dhcp_routes = true;
r = config_parse(NULL, filename, file, "Match\0Network\0Address\0Route\0DHCPv4\0", config_item_perf_lookup,
(void*) network_network_gperf_lookup, false, false, network);