[systemd-commits] src/network
Tom Gundersen
tomegun at kemper.freedesktop.org
Wed May 21 02:32:32 PDT 2014
src/network/networkd-link.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit f5602be9da8ba0c0cc4865398aa7fa99ad447d56
Author: Tom Gundersen <teg at jklm.no>
Date: Wed May 21 11:28:13 2014 +0200
networkd: link - serialize link when addresses change
Thanks to Kay for tracking this down.
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c
index 04a2f8c..6677b94 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");
More information about the systemd-commits
mailing list