kernel-netlink: Fix compilation on old kernels not defining IFA_F_NODAD

Fixes #2490.
This commit is contained in:
Tobias Brunner 2017-12-11 10:35:30 +01:00
parent 0701236337
commit 3c36c95539
1 changed files with 2 additions and 0 deletions

View File

@ -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