Re: [PATCH iptables] libxt_length: update to revision 1

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

 



On Sat, Jul 24, 2010 at 1:28 PM, Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote:
> Le samedi 24 juillet 2010 à 12:29 +0800, Changli Gao a écrit :
>> update libxt_length to revision 1 to support ipv6 jumbo frames.
>>
>> Signed-off-by: Changli Gao <xiaosuo@xxxxxxxxx>
>> ----
>>  extensions/libxt_length.c           |    1 +
>>  include/linux/netfilter/xt_length.h |    2 +-
>>  2 files changed, 2 insertions(+), 1 deletion(-)
>> diff --git a/extensions/libxt_length.c b/extensions/libxt_length.c
>> index 96e8b6c..5d0f5e9 100644
>> --- a/extensions/libxt_length.c
>> +++ b/extensions/libxt_length.c
>> @@ -125,6 +125,7 @@ static struct xtables_match length_match = {
>>       .print          = length_print,
>>       .save           = length_save,
>>       .extra_opts     = length_opts,
>> +     .revision       = 1,
>>  };
>>
>>  void _init(void)
>
> Hmm... I think you missed at line 50 :
>
>
>        info->max = cp[0] ? parse_length(cp) : 0xFFFF;
>
> Or document the thing...
>

Oh, thanks. I think we can change 0xFFFF to 0xFFFFFFFF, and I also
need to update the return value of parse_length() to u_int32_t.

-- 
Regards,
Changli Gao(xiaosuo@xxxxxxxxx)
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux