Re: [PATCH] ebtables: Clone xt_AUDIT to ebt_audit to return EBT_CONTINUE

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

 



On Wednesday 2011-03-16 01:33, Thomas Graf wrote:

>Even though ebtables uses xtables it still requires targets to
>return EBT_CONTINUE instead of XT_CONTINUE. This prevented
>xt_AUDIT to work as ebt module.

Something that just came to mind is that you could probably do
to keep the code at a minimum:


static unsigned int ebt_audit(struct xt_target_param *par)
{
	unsigned int ret = xt_audit_tg(par);

	if (ret == XT_CONTINUE)
		return EBT_CONTINUE;
	...
}

static struct xt_target audit_tg_reg[] = {
	{
		.name = "AUDIT",
		.family = NFPROTO_UNSPEC,
		.target = xt_audit_tg,
	},
	{
		.name = "AUDIT",
		.family = NFPROTO_BRIDGE,
		.target = ebt_audit_tg,
	},
};
--
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