network: disable LinkLocalAddressing= and IPv6AcceptRA= on bridge slaves by default

If they are not explicitly configured, then let's disable these
functionality on bridge slaves.
This commit is contained in:
Yu Watanabe
2019-02-25 09:34:14 +09:00
parent b102cdca6b
commit 8f1918016f
+4 -1
View File
@@ -141,7 +141,10 @@ static int network_verify(Network *network) {
}
if (network->link_local < 0)
network->link_local = ADDRESS_FAMILY_IPV6;
network->link_local = network->bridge ? ADDRESS_FAMILY_NO : ADDRESS_FAMILY_IPV6;
if (network->ipv6_accept_ra < 0 && network->bridge)
network->ipv6_accept_ra = false;
/* IPMasquerade=yes implies IPForward=yes */
if (network->ip_masquerade)