Re: [PATCH nf-next,v2 2/2] netfilter: nf_tables: honor validation state in preparation phase

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

 



Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> wrote:
>  static int nft_table_validate(struct net *net, const struct nft_table *table)
> @@ -4044,6 +4060,7 @@ static int nft_table_validate(struct net *net, const struct nft_table *table)
>  	struct nft_chain *chain;
>  	struct nft_ctx ctx = {
>  		.net	= net,
> +		.table	= (struct nft_table *)table,

Patch LGTM but I think it would make more sense to remove the const
qualifier from nft_table_validate() rather than this un-do.

Aside from that:
Reviewed-by: Florian Westphal <fw@xxxxxxxxx>





[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux