Re: [PATCH] extensions: libipt_REJECT: Add translation to nft

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

 



On Sun, Dec 27, 2015 at 10:12:48AM +0530, Shivani Bhardwaj wrote:
> Add translation for target REJECT to nftables.

Applied, thanks.

> +static int REJECT_xlate(const struct xt_entry_target *target,
> +			struct xt_buf *buf, int numeric)
> +{
> +	const struct ipt_reject_info *reject
> +				= (const struct ipt_reject_info *)target->data;

BTW, always keep the operand on the original line that you're
breaking, ie.

	const struct ipt_reject_info *reject =
                (const struct ipt_reject_info *)target->data;

This also applies to things like:

        if (a != 10 &&
            b != 20 &&
            c != 30)

Please, follow up with a translation for libip6t_REJECT. Thanks.
--
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