NetworkManager/src/libnm-platform
Beniamino Galvani 2ca56c9bbd libnm-platform: add NM_PLATFORM_MATCH_WITH_ADDRSTATE_DEPRECATED
Add a new flag to match deprecated addresses. An address is deprecated
when its preferred lifetime has expired but its valid lifetime has
not.

Address deprecation is one of the criteria for source address
selection in IPv6. For IPv4 the deprecation doesn't have any
real effect.

Note that this commit changes the behavior of
nm_ip_config_get_first_address(WITH_ADDRSTATE_NORMAL), since now
deprecated addresses are not returned. However this should not impact
existing callers since they either:

 - request a IPv6 (WITH_ADDRTYPE_LINKLOCAL | WITH_ADDRSTATE_NORMAL)
   address; IPv6 link-local addresses are supposed to have infinite
   lifetimes;

 or

 - request a IPv6 (WITH_ADDRTYPE_NORMAL | WITH_ADDRSTATE__ANY)
   address.

(cherry picked from commit ff84a4736d)
2021-06-21 10:14:19 +02:00
..
tests build/meson: cleanup tests 2021-02-28 18:56:08 +01:00
wifi clang-format: reformat code with clang 12 2021-05-04 13:56:26 +02:00
wpan platform: move "platform/{wifi,wpan}/" to "src/libnm-platform/" 2021-03-05 11:27:15 +01:00
meson.build platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nm-linux-platform.c clang-format: reformat code with clang 12 2021-05-04 13:56:26 +02:00
nm-linux-platform.h platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nm-netlink.c platform/netlink: don't reallocate ancillary data for recvmsg() on truncation 2021-06-01 09:37:36 +02:00
nm-netlink.h build: move "shared/nm-std-aux" to "src/libnm-std-aux" 2021-02-24 12:48:24 +01:00
nm-platform-private.h platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nm-platform-utils.c platform: avoid wrong coverity warning in nmp_utils_sysctl_open_netdir() 2021-06-11 22:44:31 +02:00
nm-platform-utils.h ethtool: Introducing PAUSE support 2021-05-12 18:04:46 +02:00
nm-platform.c libnm-platform: add NM_PLATFORM_MATCH_WITH_ADDRSTATE_DEPRECATED 2021-06-21 10:14:19 +02:00
nm-platform.h libnm-platform: add NM_PLATFORM_MATCH_WITH_ADDRSTATE_DEPRECATED 2021-06-21 10:14:19 +02:00
nmp-base.h ethtool: Introducing PAUSE support 2021-05-12 18:04:46 +02:00
nmp-netns.c build: move "shared/nm-{glib-aux,log-null,log-core}" to "src/libnm-{glib-aux,log-null,log-core}" 2021-02-24 12:48:20 +01:00
nmp-netns.h build: move "shared/nm-platform" to "src/libnm-platform" 2021-02-24 12:48:17 +01:00
nmp-object.c trivial: fix coding style issue 2021-05-27 09:56:18 +02:00
nmp-object.h clang-format: reformat code with clang 12 2021-05-04 13:56:26 +02:00
nmp-rules-manager.c platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00
nmp-rules-manager.h platform: move more platform code to src/libnm-platform/ 2021-03-05 11:27:16 +01:00