chiark / gitweb /
resolved: properly handle MTU logic
[elogind.git] / src / resolve / resolved-link.c
index 9c886a2..61b112c 100644 (file)
@@ -91,6 +91,10 @@ int link_update_rtnl(Link *l, sd_rtnl_message *m) {
         if (r < 0)
                 return r;
 
+        r = sd_rtnl_message_read_u32(m, IFLA_MTU, &l->mtu);
+        if (r < 0)
+                return r;
+
         return 0;
 }