diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-02-03 21:40:53 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2019-02-03 21:52:32 +0100 |
commit | 5a67809d6ae3bd917c3b64489900f1dbc9538701 (patch) | |
tree | fd416e007eb4aa28a758da8cee16a11431f88ccf | |
parent | 5ae4245be274aea569351d6aa5fada40efe1b06e (diff) | |
download | NetworkManager-lr/poor-florian.tar.gz |
platform/linux: fix setting of IFA_ADDRESS without a peerlr/poor-florian
Since commit 9ecdba316 ('platform: create netlink messages directly
without libnl-route-3') we're unconditionally setting IFA_ADDRESS to
the peer address, even if there's no peer and it's all zeroes.
The kernel actually stopped caring somewhere around commit caeaba790
('ipv6: add support of peer address') in v3.10, but Ubuntu Touch likes
tu run Android's v3.4 with on some poorly supported hardware.
Fixes: 9ecdba316cf89612f3441aad16b99edc01c24e0d
-rw-r--r-- | src/platform/nm-linux-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 4f6d211518..bf5a05dfe2 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -7373,7 +7373,7 @@ ip6_address_add (NMPlatform *platform, ifindex, &addr, plen, - &peer_addr, + IN6_IS_ADDR_UNSPECIFIED (&peer_addr) ? NULL : &peer_addr, flags, RT_SCOPE_UNIVERSE, lifetime, |