ip6: accept RAs when forwarding

This patch makes NM set the "accept_ra" sysctl to 1 rather than 2. This
causes the kernel to process RAs even if it configured to forward IPv6
traffic on the interface in question.

IPv6 forwarding would likely be enabled on a host running virtualised
operating systems with virtualised network adapters, for example. This
should not prevent NM from successfully activating IPv6 on a
NM-controlled interface configured with IPv6 mode Auto.
This commit is contained in:
Tore Anderson 2011-08-29 14:26:40 +02:00 committed by Dan Williams
parent 6c6ec65abe
commit 453f676b2d

View file

@ -1104,7 +1104,7 @@ nm_ip6_manager_prepare_interface (NMIP6Manager *manager,
nm_utils_do_sysctl (accept_ra_path, "0\n");
} else {
device->target_state = NM_IP6_DEVICE_GOT_ADDRESS;
nm_utils_do_sysctl (accept_ra_path, "1\n");
nm_utils_do_sysctl (accept_ra_path, "2\n");
}
return TRUE;