Commit:     81d9ddae856678c45297550e9353c8a5a7fd6438
Parent:     4ce5ba6aecb218981fc76585b6d9a7d0019e61b5
Author:     Patrick McHardy <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 13 02:58:44 2007 -0800
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Nov 13 02:58:44 2007 -0800

    [NETFILTER]: bridge: fix double POSTROUTING hook invocation
    Packets routed between bridges have the POST_ROUTING hook invoked
    twice since bridging mistakes them for bridged packets because
    they have skb->nf_bridge set.
    Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 net/bridge/br_netfilter.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index da22f90..c1757c7 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -766,6 +766,9 @@ static unsigned int br_nf_post_routing(unsigned int hook, 
struct sk_buff *skb,
        if (!nf_bridge)
                return NF_ACCEPT;
+       if (!(nf_bridge->mask & (BRNF_BRIDGED | BRNF_BRIDGED_DNAT)))
+               return NF_ACCEPT;
        if (!realoutdev)
                return NF_DROP;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to