Re: [PATCH] netfilter: ip[6]t_REJECT: tcp-reset using wrong MAC source if bridged

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

 



On Wed, Jul 03, 2013 at 01:41:31AM +0200, Pablo Neira Ayuso wrote:
> > +	if (oldskb->nf_bridge) {
> > +		struct ethhdr *oeth = eth_hdr(oldskb);
> > +		nskb->dev = oldskb->nf_bridge->physindev;
> 
> This won't work for locally generated traffic, physindev is null in
> that case.

But nf_bridge is NULL for locally generated traffic, so we won't
even enter this section at all.

Phil
--
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