Commits
Andrey Mirkin authored and Pavel Emelianov committed 81593f647c0
[PATCH] CPT: Add support for netdevice hardware addresses In current implementation netdevice hardware (MAC) address is not saved, so devices like tap will have different MAC address after restore. This will lead to creation of new local IPv6 address based on MAC address. This patch allows to save/restore hardware addresses on all netdevices. Also this patch changes cpt image version. This is done because of following code we have now: err = rst_get_object(CPT_OBJ_NET_DEVICE, sec, &di, ctx); if (err) return err; if (di.cpt_next > sizeof(di)) { err = rst_restore_tuntap(sec, &di, ctx); if (err) return err; } It was supposed that we will have only netdevice image or netdevice image and tuntap image. With new code it will be possible to have netdevice and hwaddr image, so old kernel will consider hwaddr image as tuntap image. And will return -EINVAL while reading this image. So, migration to old kernel is prohibited, just to be sure that sensible error will be returned in this case. Bug #96040