Re: Wrong ethernet headers after double postrouting fix

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

 



On Dec 13, 2007 9:41 AM, Patrick McHardy <kaber@xxxxxxxxx> wrote:
> Could you try this patch please?
>
>
> diff --git a/include/linux/netfilter_bridge.h b/include/linux/netfilter_bridge.h
> index 533ee35..499aa93 100644
> --- a/include/linux/netfilter_bridge.h
> +++ b/include/linux/netfilter_bridge.h
> @@ -50,7 +50,8 @@ enum nf_br_hook_priorities {
>  extern int nf_bridge_copy_header(struct sk_buff *skb);
>  static inline int nf_bridge_maybe_copy_header(struct sk_buff *skb)
>  {
> -       if (skb->nf_bridge)
> +       if (skb->nf_bridge &&
> +           skb->nf_bridge->mask & (BRNF_BRIDGED | BRNF_BRIDGED_DNAT))
>                 return nf_bridge_copy_header(skb);
>         return 0;
>  }
>
>

I tried it and it successfully solves this problem. Everything is fine now.

Thank you!
--
Damien Thebault
-
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