mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
network: IFA_F_NODAD flag is only for IPv6 addresses
This commit is contained in:
parent
ad64e3e8d6
commit
bd5146c67e
@ -2111,7 +2111,8 @@ static int address_section_verify(Address *address) {
|
|||||||
address->scope = RT_SCOPE_HOST;
|
address->scope = RT_SCOPE_HOST;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!FLAGS_SET(address->duplicate_address_detection, ADDRESS_FAMILY_IPV6))
|
if (address->family == AF_INET6 &&
|
||||||
|
!FLAGS_SET(address->duplicate_address_detection, ADDRESS_FAMILY_IPV6))
|
||||||
address->flags |= IFA_F_NODAD;
|
address->flags |= IFA_F_NODAD;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user