Re: [PATCH] ip6-manager: Accept RAs when forwarding



On Mon, 2011-08-29 at 14:26 +0200, Tore Anderson wrote:
> 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.

Pushed, thanks.

Dan

> ---
>  src/ip6-manager/nm-ip6-manager.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/ip6-manager/nm-ip6-manager.c b/src/ip6-manager/nm-ip6-manager.c
> index fb9e77b..03f5cc4 100644
> --- a/src/ip6-manager/nm-ip6-manager.c
> +++ b/src/ip6-manager/nm-ip6-manager.c
> @@ -1089,7 +1089,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;




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]