/* Based on: xt_NFLOG.c, (C) 2006 by Patrick McHardy  */
static unsigned int ebt_nflog_tg(struct sk_buff *skb, const struct xt_target_param *par)
/* Based on: xt_NFLOG.c, (C) 2006 by Patrick McHardy  */
static unsigned int ebt_nflog_tg(struct sk_buff *skb, const struct xt_target_param *par)
{
	const struct ebt_nflog_info *info = par->targinfo;
	struct nf_loginfo li;
	li.type = NF_LOG_TYPE_ULOG;
	li.u.ulog.copy_len = info->len;
	li.u.ulog.group = info->group;
	li.u.ulog.qthreshold = info->threshold;
	nf_log_packet(PF_BRIDGE, par->hooknum, skb, par->in, par->out,
	              &li, "%s", info->prefix);
	return EBT_CONTINUE;
}