platform: ignore errors adding IPv6 point-to-point address

For now, ignore them, as libnl does not support IPv6 PtP addresses
and returns an error.  In the future perhaps we'll want to add a host
route for the peer instead of using the point-to-point address.
This commit is contained in:
Dan Williams 2014-01-06 17:21:11 -06:00
parent 0b3fdd073e
commit 90782cf023

View file

@ -2274,7 +2274,8 @@ build_rtnl_addr (int family,
auto_nl_addr struct nl_addr *nlpeer = nl_addr_build (family, peer_addr, addrlen);
nle = rtnl_addr_set_peer (rtnladdr, nlpeer);
g_assert (!nle);
/* IPv6 doesn't support peer addresses yet */
g_assert (!nle || (nle == -NLE_AF_NOSUPPORT));
}
rtnl_addr_set_prefixlen (rtnladdr, plen);