platform: assume support for IPv6 temporary addrsses if detection fails
We detect support for IPv6 temporary addresses (IFA_F_MANAGETEMPADDR) or /64 v6 prefixes (IFA_F_NOPREFIXROUTE) based on the presence of extended address flags. For the most part this just works, but it fails down if upon initialization no addresses are present. In such a case we would have assumed no support. Change that to default to available support as the feature is already 2 years in upstream kernel.
This commit is contained in:
@@ -2338,8 +2338,8 @@ static gboolean
|
||||
_support_kernel_extended_ifa_flags_get (void)
|
||||
{
|
||||
if (_support_kernel_extended_ifa_flags_still_undecided ()) {
|
||||
_LOG2W ("support: kernel-extended-ifa-flags: unable to detect kernel support for handling IPv6 temporary addresses. Assume none");
|
||||
_support_kernel_extended_ifa_flags = 0;
|
||||
_LOG2W ("support: kernel-extended-ifa-flags: unable to detect kernel support for handling IPv6 temporary addresses. Assume support");
|
||||
_support_kernel_extended_ifa_flags = 1;
|
||||
}
|
||||
return _support_kernel_extended_ifa_flags;
|
||||
}
|
||||
|
Reference in New Issue
Block a user