[radvd-devel-l] [PATCH] radvd: Fix prefix option missing when AdvPreferredLifetime equals 0.
Reuben Hawkins
reubenhwk at gmail.com
Wed Feb 22 12:38:20 EST 2012
On Tue, Feb 14, 2012 at 8:34 PM, Reuben Hawkins <reubenhwk at gmail.com> wrote:
> 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
>>
>>
>
Hi Li,
I've committed and pushed the change to github.
Thanks,
Reuben
More information about the radvd-devel-l
mailing list