NetworkManager/src/platform
Beniamino Galvani a8ce20e96f platform: improve IPv6 address synchronization
When we must synchronize IPv6 addresses, we compare the order of
addresses to set with what is currently set on platform. Starting from
addresses with lower priority, when a mismatch is found we remove it
from platform and also remove all following addresses, so that we can
re-add them in the right order.

Since kernel keeps addresses internally sorted by scope, we should
consider each scope separately in order to avoid unnecessary address
deletions. For example, if we want to configure addresses
fe80::1/64,2000::1/64 and we currently have on platform 2000::1/64,
it's not necessary to remove the existing address; we can just add the
link-local one.

Co-authored-by: Thomas Haller <thaller@redhat.com>

https://bugzilla.redhat.com/show_bug.cgi?id=1814557
(cherry picked from commit 0118ad5125)
2020-03-26 22:23:01 +01:00
..
linux all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
tests tests: replace NMTST_SWAP() by new NM_SWAP() macro 2020-03-26 22:22:57 +01:00
wifi all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
wpan all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-fake-platform.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
nm-fake-platform.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-linux-platform.c platform/linux: add support for /31 prefixes on IPv4 point-to-point links 2020-01-07 17:15:25 +01:00
nm-linux-platform.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-netlink.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-netlink.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-platform-private.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-platform-utils.c all: use nm_utils_ifname_valid_kernel() instead of nm_utils_is_valid_iface_name() 2020-02-17 17:28:14 +01:00
nm-platform-utils.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-platform.c platform: improve IPv6 address synchronization 2020-03-26 22:23:01 +01:00
nm-platform.h all: add support for "scope" attribute for IPv4 routes 2019-11-28 00:11:15 +01:00
nmp-netns.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-netns.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-object.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-object.h platform: avoid compiler warning in _NMP_OBJECT_TYPE_IS_OBJ_WITH_IFINDEX() 2020-02-22 12:10:57 +01:00
nmp-rules-manager.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nmp-rules-manager.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00