[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM_iQpUT8CMdz1sgBaVS+7drzPPFp10APOHiKPib8oNq7kPsFg@mail.gmail.com>
Date: Mon, 7 Aug 2017 14:03:15 -0700
From: Cong Wang <xiyou.wangcong@...il.com>
To: Xin Long <lucien.xin@...il.com>
Cc: network dev <netdev@...r.kernel.org>,
David Miller <davem@...emloft.net>,
Pablo Neira Ayuso <pablo@...filter.org>
Subject: Re: [PATCH net] net: sched: set xt_tgchk_param par.nft_compat with
false in ipt_init_target
On Sat, Aug 5, 2017 at 4:32 AM, Xin Long <lucien.xin@...il.com> wrote:
> Commit 55917a21d0cc ("netfilter: x_tables: add context to know if
> extension runs from nft_compat") introduced a member nft_compat to
> xt_tgchk_param structure.
>
> But it didn't set it's value for ipt_init_target. With unexpected
> value in par.nft_compat, it may return unexpected result in some
> target's checkentry.
>
> This patch is to set par.nft_compat with false in ipt_init_target.
It's time to set all these fields to 0 and only initialize those non-zero
fields, in case we will add more fields in the future.
Powered by blists - more mailing lists