summaryrefslogtreecommitdiff
path: root/src/network/networkd-link.c
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-08-04 20:57:02 +0200
committerTom Gundersen <teg@jklm.no>2014-08-04 20:58:15 +0200
commit59b8f6b628145586e87b8a4f6e29c755ad7d61ed (patch)
tree77817ab759626160a4a9842c6cddff2b5ed38996 /src/network/networkd-link.c
parent72d314c8d80f0816afce6ba72cd27ec7ff1c73c1 (diff)
sd-dhcp-server: always send out ROUTER and SUBNET_MASK
For now we simply take these values from the server's address.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r--src/network/networkd-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index e674b3b12c..accb42bf37 100644
--- a/src/network/networkd-link.c
+++ b/src/network/networkd-link.c
@@ -311,7 +311,7 @@ static int link_enter_configured(Link *link) {
log_debug_link(link, "offering DHCPv4 leases");
- r = sd_dhcp_server_set_address(link->dhcp_server, &address->in_addr.in);
+ r = sd_dhcp_server_set_address(link->dhcp_server, &address->in_addr.in, address->prefixlen);
if (r < 0)
return r;