Re: [PATCH nf-next v2 2/2] netfilter: nft_hash: support of symmetric hash

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

 



Hi,

2017-03-01 1:38 GMT+08:00 Laura Garcia Liebana <nevola@xxxxxxxxx>:
[...]
> +static const struct nft_expr_ops *
> +nft_hash_select_ops(const struct nft_ctx *ctx,
> +                   const struct nlattr * const tb[])
> +{
> +       u32 type;
> +
> +       if (!tb[NFTA_HASH_TYPE])
> +               return ERR_PTR(-EINVAL);

For compatibility reason, if tb[NFTA_HASH_TYPE] is NULL, maybe it's better
to return &nft_jhash_ops instead of reporting error.
--
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