From 36c32f6120a0c3fe19be5aeaa1926e179e8c29ba Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 28 Sep 2015 17:16:12 +0200 Subject: networkd: address - factor out address_update() Call back into link_check_ready() whenever an address state change may have made a link ready. --- src/network/networkd-dhcp4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network/networkd-dhcp4.c') diff --git a/src/network/networkd-dhcp4.c b/src/network/networkd-dhcp4.c index e2f7d69666..5c91d9609f 100644 --- a/src/network/networkd-dhcp4.c +++ b/src/network/networkd-dhcp4.c @@ -299,9 +299,9 @@ static int dhcp4_update_address(Link *link, addr->prefixlen = prefixlen; addr->broadcast.s_addr = address->s_addr | ~netmask->s_addr; - /* use update rather than configure so that we will update the + /* use change rather than configure so that we will update the * lifetime of an existing address if it has already been configured */ - r = address_update(addr, link, &dhcp4_address_handler); + r = address_change(addr, link, &dhcp4_address_handler); if (r < 0) return r; -- cgit v1.2.3-54-g00ecf