diff options
author | Thomas Haller <thaller@redhat.com> | 2017-10-10 18:20:05 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-10-12 10:38:19 +0200 |
commit | 5b0745e7bd77b5b4dcd2a2061820fe2e80615ba8 (patch) | |
tree | 72b451c32e473bbbacb5113385f80ff5420d842a /src/nm-iface-helper.c | |
parent | 5b507d5787b74d58fdfc97c4c381cc48b150ccba (diff) | |
download | NetworkManager-5b0745e7bd77b5b4dcd2a2061820fe2e80615ba8.tar.gz |
platform: refactor detecting kernel support
We are going to add another parameter to check. Instead of adding multiple
virtual functions, add a NMPlatformKernelSupportFlags flags enum.
Diffstat (limited to 'src/nm-iface-helper.c')
-rw-r--r-- | src/nm-iface-helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-iface-helper.c b/src/nm-iface-helper.c index 4be92bfb44..8f6331e3c9 100644 --- a/src/nm-iface-helper.c +++ b/src/nm-iface-helper.c @@ -183,7 +183,8 @@ ndisc_config_changed (NMNDisc *ndisc, const NMNDiscData *rdata, guint changed_in * addresses as /128. The reason for the /128 is to prevent the kernel * from adding a prefix route for this address. */ ifa_flags = 0; - if (nm_platform_check_support_kernel_extended_ifa_flags (NM_PLATFORM_GET)) { + if (nm_platform_check_kernel_support (NM_PLATFORM_GET, + NM_PLATFORM_KERNEL_SUPPORT_EXTENDED_IFA_FLAGS)) { ifa_flags |= IFA_F_NOPREFIXROUTE; if (NM_IN_SET (global_opt.tempaddr, NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_TEMP_ADDR, NM_SETTING_IP6_CONFIG_PRIVACY_PREFER_PUBLIC_ADDR)) |