diff options
author | Thomas Haller <thaller@redhat.com> | 2017-02-10 15:08:19 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2017-02-10 15:14:15 +0100 |
commit | 6ad8011e2dd3533860a4d98bd5de2528eecdd6cf (patch) | |
tree | a33e988e21aa3e51b8dee727953c017a414cbddf | |
parent | 95f9b0266cf3ddfa4f8219603f7f4de76b131257 (diff) | |
download | NetworkManager-6ad8011e2dd3533860a4d98bd5de2528eecdd6cf.tar.gz |
platform: use IFA_FLAGS name instead of numeric value
Originally, IFA_FLAGS might not have been present in the headers.
In the mean time, we explicitly define it outself to be "8".
-rw-r--r-- | src/platform/nm-linux-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 1e7445be47..3138b171bc 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -2450,7 +2450,7 @@ _support_kernel_extended_ifa_flags_detect (struct nl_msg *msg) * we assume, that the kernel supports extended flags, IFA_F_MANAGETEMPADDR * and IFA_F_NOPREFIXROUTE (they were added together). **/ - _support_kernel_extended_ifa_flags = !!nlmsg_find_attr (msg_hdr, sizeof (struct ifaddrmsg), 8 /* IFA_FLAGS */); + _support_kernel_extended_ifa_flags = !!nlmsg_find_attr (msg_hdr, sizeof (struct ifaddrmsg), IFA_FLAGS); _LOG2D ("kernel-support: extended-ifa-flags: %s", _support_kernel_extended_ifa_flags ? "detected" : "not detected"); } |