mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-07 23:50:30 +01:00
device: require a direct route for IPv6 gateway
In the IPv4 case, we check whether we have a direct route to the gateway
also by looking at the configured addresses/subnets. That is correct,
because every IPv4 address also implies a subnet route.
For IPv6, we explicitly add all subnet routes manually (noprefixroute),
hence, we have a direct route exactly if we have it in our list.
Regardless of the configured IPv6 prefixes.
(cherry picked from commit 2c06449085)
This commit is contained in:
parent
4001615034
commit
f6da80f153
1 changed files with 2 additions and 2 deletions
|
|
@ -3777,8 +3777,8 @@ ip6_config_merge_and_apply (NMDevice *self,
|
|||
goto END_ADD_DEFAULT_ROUTE;
|
||||
|
||||
|
||||
has_direct_route = ( nm_ip6_config_get_subnet_for_host (composite, gateway)
|
||||
|| nm_ip6_config_get_direct_route_for_host (composite, gateway));
|
||||
has_direct_route = nm_ip6_config_get_direct_route_for_host (composite, gateway) != NULL;
|
||||
|
||||
|
||||
|
||||
/* In the (!has_direct_route && !commit) case it is not clear whether
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue