[radvd-devel-l] [PATCH] radvd: Fix prefix option missing when AdvPreferredLifetime equals 0.

Reuben Hawkins reubenhwk at gmail.com
Tue Feb 14 23:34:48 EST 2012


On Tue, Feb 14, 2012 at 7:44 PM, Li Wei <lw at cn.fujitsu.com> wrote:
>
> Without "DecrementLifetimes" on, we should include the prefix option
> in the RA packets even when AdvPreferredLifetime equals 0, and set
> AdvPreferredLifetime as user specified(zero).
>
> Signed-off-by: Li Wei <lw at cn.fujitsu.com>
> ---
>  send.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/send.c b/send.c
> index 9e6a29c..3c56bfb 100644
> --- a/send.c
> +++ b/send.c
> @@ -221,7 +221,7 @@ send_ra(struct Interface *iface, struct in6_addr *dest)
>
>        while(prefix)
>        {
> -               if( prefix->enabled && prefix->curr_preferredlft > 0 )
> +               if( prefix->enabled && (!prefix->DecrementLifetimesFlag || prefix->curr_preferredlft > 0) )
>                {
>                        struct nd_opt_prefix_info *pinfo;
>
> --
> 1.7.1
>
>

Awesome!  Thanks.  I'll be out of town a few days and (hopefully)
won't be doing any computer work.  I'll check this and commit next
week.

Anybody else out there is also welcome to test this and report bugs.

Thanks,
Reuben



More information about the radvd-devel-l mailing list