]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: check accept_ra before enabling ipv6 forwarding
authorCédric Bosdonnat <cbosdonnat@suse.com>
Fri, 3 Mar 2017 13:14:51 +0000 (14:14 +0100)
committerCédric Bosdonnat <cbosdonnat@suse.com>
Wed, 22 Mar 2017 08:01:33 +0000 (09:01 +0100)
commit00d28a78b5d1f6eaf79f06ac59e31c568af9da37
tree700e9adaff66a8cf144c455881528cf160ab20e4
parent5dd607059d8a98e04024305ae4afbd038aadbdcd
network: check accept_ra before enabling ipv6 forwarding

When enabling IPv6 on all interfaces, we may get the host Router
Advertisement routes discarded. To avoid this, the user needs to set
accept_ra to 2 for the interfaces with such routes.

See https://www.kernel.org/doc/Documentation/networking/ip-sysctl.txt
on this topic.

To avoid user mistakenly losing routes on their hosts, check
accept_ra values before enabling IPv6 forwarding. If a RA route is
detected, but neither the corresponding device nor global accept_ra
is set to 2, the network will fail to start.
src/libvirt_private.syms
src/network/bridge_driver.c
src/util/virnetdevip.c
src/util/virnetdevip.h