NetworkManager/src/platform
Thomas Haller 8670aacc7c platform: cleanup detecting kernel support for IFA_FLAGS and IPv6LL
- cache the result in NMPlatformPrivate. No need to call the virtual
  function every time. The result is not ever going to change.

- if we are unable to detect support, assume support. Those features
  were added quite a while ago to kernel, we should default to "support".
  Note, that we detect support based on the presence of the absence of
  certain netlink flags. That means, we will still detect no support.
  The only moment when we actually use the fallback value, is when we
  didn't encounter an RTM_NEWADDR or AF_INET6-IFLA_AF_SPEC message yet,
  which would be very unusual, because we fill the cache initially and
  usually will have some addresses there.

- for no strong reason, track "undetected" as numerical value zero,
  and "support"/"no-support" as 1/-1. We already did that previously for
  _support_user_ipv6ll, so this just unifies the implementations.
  The minor reason is that this puts @_support_user_ipv6ll to the BSS
  section and allows us to omit initializing priv->check_support_user_ipv6ll_cached
  in platforms constructor.

- detect _support_kernel_extended_ifa_flags also based on IPv4
  RTM_NEWADDR messages. Originally, extended flags were added for IPv6,
  and later to IPv4 as well. Once we see an IPv4 message with IFA_FLAGS,
  we know we have support.
2017-08-24 10:48:03 +02:00
..
tests platform: cleanup nmp_lookup_init_route_visible() lookup helper 2017-08-12 16:04:28 +02:00
wifi devices/arping-manager: log the device context 2017-03-24 12:42:09 +01:00
nm-fake-platform.c platform: add and use nm_platform_ip_route_normalize() 2017-08-23 18:37:22 +02:00
nm-fake-platform.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-linux-platform.c platform: cleanup detecting kernel support for IFA_FLAGS and IPv6LL 2017-08-24 10:48:03 +02:00
nm-linux-platform.h platform: use NMDedupMultiIndex for routes in NMPCache 2017-07-05 18:37:38 +02:00
nm-platform-private.h platform: expose emit-signal function from platform 2017-07-05 18:37:39 +02:00
nm-platform-utils.c udev: drop libgudev in favor of libudev 2017-03-22 12:41:06 +01:00
nm-platform-utils.h udev: drop libgudev in favor of libudev 2017-03-22 12:41:06 +01:00
nm-platform.c platform: cleanup detecting kernel support for IFA_FLAGS and IPv6LL 2017-08-24 10:48:03 +02:00
nm-platform.h platform: add non-exclusive routes and drop route-manager 2017-08-24 10:48:03 +02:00
nmp-netns.c logging: log device and connection along with the message 2017-03-24 12:42:09 +01:00
nmp-netns.h platform: preserve errno in nm_auto_pop_netns 2016-12-13 11:26:58 +01:00
nmp-object.c platform: fix updating object in nmp_cache_update_netlink_route() 2017-08-18 11:32:29 +02:00
nmp-object.h platform: add typedef for NMPObjectPredicateFunc function pointer 2017-08-23 18:37:22 +02:00