mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 12:40:11 +01:00
ndisc: ensure we skip unspecified IPv6 address in ndisc_set_router_config()
Later, nm_ndisc_add_address() asserts that the address is not an unspecified address. Skip it, just to be sure. (cherry picked from commit700b04d0de) (cherry picked from commite0e698e463) (cherry picked from commit547dcacbfb)
This commit is contained in:
parent
8177b0c397
commit
aeca2fb4b1
1 changed files with 2 additions and 1 deletions
|
|
@ -2645,7 +2645,8 @@ ndisc_set_router_config (NMNDisc *ndisc, NMDevice *self)
|
|||
guint32 lifetime, preferred;
|
||||
gint32 base;
|
||||
|
||||
if (IN6_IS_ADDR_LINKLOCAL (&addr->address))
|
||||
if ( IN6_IS_ADDR_UNSPECIFIED (&addr->address)
|
||||
|| IN6_IS_ADDR_LINKLOCAL (&addr->address))
|
||||
continue;
|
||||
|
||||
if ( addr->n_ifa_flags & IFA_F_TENTATIVE
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue