]> git.ipfire.org Git - thirdparty/libvirt.git/commit
dnsmasq: disable IPv6 default gateway in RA for isolated networks
authorMaxim Perevedentsev <mperevedentsev@virtuozzo.com>
Fri, 1 Jul 2016 11:50:18 +0000 (14:50 +0300)
committerMaxim Nestratov <mnestratov@virtuozzo.com>
Wed, 13 Jul 2016 10:49:03 +0000 (13:49 +0300)
commit527968d433fb06067faa1a10f1f38878e01a393b
tree87e47d29f9ad7893588a37afb87c8511b2e151b2
parenta96528e95784d1dfe4af122a19413ccb6921d15e
dnsmasq: disable IPv6 default gateway in RA for isolated networks

IPv6 RA always contains an implicit default route via
the link-local address of the source of RA. This forces
the guest to install a route via isolated network, which
may disturb the guest's networking in case of multiple interfaces.
More info in 013427e6e733f7a662f4e8a9c11f7dad4cd65e3f.

The validity of this route is controlled by "default [route] lifetime"
field of RA. If the lifetime is set to 0 seconds, then no route
is installed by receiver.

dnsmasq 2.67+ supports "ra-param=<interface>,<RA interval>,<default
lifetime>" option. We pass "ra-param=*,0,0"
(here, RA_interval=0 means default) to disable default gateway in RA
for isolated networks.
src/network/bridge_driver.c
src/util/virdnsmasq.c
src/util/virdnsmasq.h