diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-21 11:28:13 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-21 11:32:03 +0200 |
commit | f5602be9da8ba0c0cc4865398aa7fa99ad447d56 (patch) | |
tree | 5bd0c703a84c3846ff673005765604e4673b4909 /src | |
parent | 351efdc7a4d900a1aebca517dd0b46b89cdd7306 (diff) |
networkd: link - serialize link when addresses change
Thanks to Kay for tracking this down.
Diffstat (limited to 'src')
-rw-r--r-- | src/network/networkd-link.c | 7 |
1 files changed, 6 insertions, 1 deletions
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"); |