From f5602be9da8ba0c0cc4865398aa7fa99ad447d56 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Wed, 21 May 2014 11:28:13 +0200 Subject: networkd: link - serialize link when addresses change Thanks to Kay for tracking this down. --- src/network/networkd-link.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/network') diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 04a2f8ccbe..6677b949c4 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1809,12 +1809,17 @@ int link_rtnl_process_address(sd_rtnl *rtnl, sd_rtnl_message *message, void *use LIST_PREPEND(addresses, link->addresses, address); address = NULL; + link_save(link); + break; case RTM_DELADDR: - if (address_dropped) + if (address_dropped) { log_debug_link(link, "removed address: %s/%u", buf, address->prefixlen); + link_save(link); + } + break; default: assert_not_reached("Received invalid RTNL message type"); -- cgit v1.2.3-54-g00ecf