mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
network: do not check deprecated flag in address_is_ready()
Without this change, the address with PreferredLifetime=0 cannot be ready, and thus, no consequent setting up process does not start. The bug was introduced by6aa5773. Follow-up forb7ed5384ab. Fixes #13341.
This commit is contained in:
@@ -978,10 +978,7 @@ int config_parse_address_scope(const char *unit,
|
||||
bool address_is_ready(const Address *a) {
|
||||
assert(a);
|
||||
|
||||
if (a->family == AF_INET6)
|
||||
return !(a->flags & IFA_F_TENTATIVE);
|
||||
else
|
||||
return !(a->flags & (IFA_F_TENTATIVE | IFA_F_DEPRECATED));
|
||||
return !(a->flags & IFA_F_TENTATIVE);
|
||||
}
|
||||
|
||||
int address_section_verify(Address *address) {
|
||||
|
||||
Reference in New Issue
Block a user