kernel-netlink: Fix compilation on old kernels not defining IFA_F_NODAD
Fixes #2490.
This commit is contained in:
parent
0701236337
commit
3c36c95539
|
@ -2333,7 +2333,9 @@ static status_t manage_ipaddr(private_kernel_netlink_net_t *this, int nlmsg_type
|
|||
|
||||
if (ip->get_family(ip) == AF_INET6)
|
||||
{
|
||||
#ifdef IFA_F_NODAD
|
||||
msg->ifa_flags |= IFA_F_NODAD;
|
||||
#endif
|
||||
if (this->rta_prefsrc_for_ipv6)
|
||||
{
|
||||
/* if source routes are possible we let the virtual IP get
|
||||
|
|
Loading…
Reference in New Issue