diff options
author | Angus Gibson <angus@agibson.me> | 2014-09-08 20:26:47 +1000 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-09-08 15:09:08 +0200 |
commit | 84b5b79a8f7b423c5b7cad4170eb68d57fe5e26c (patch) | |
tree | 67ceebd7e986f9ed3d8952cb090f0eb5b2b23806 /src/network/networkd-network.c | |
parent | af5effc4220dab6c4c87a130bae7be441f6967ca (diff) |
networkd: allow specification of DHCP route metric
This lets the routing metric for links to be specified per-network,
still defaulting to DHCP_ROUTE_METRIC (1024) if unspecified. Hopefully
this helps with multiple interfaces configured via DHCP.
Diffstat (limited to 'src/network/networkd-network.c')
-rw-r--r-- | src/network/networkd-network.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index fc62395217..a2e27e0910 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -85,6 +85,7 @@ static int network_load_one(Manager *manager, const char *filename) { network->dhcp_hostname = true; network->dhcp_routes = true; network->dhcp_sendhost = true; + network->dhcp_route_metric = DHCP_ROUTE_METRIC; network->llmnr = LLMNR_SUPPORT_YES; |