]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[NETFILTER]: ip6_queue: resync dev-index based flushing
authorPatrick McHardy <kaber@trash.net>
Wed, 5 Dec 2007 09:26:18 +0000 (01:26 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:56:14 +0000 (14:56 -0800)
Resync dev_cmp to take bridge devices into account.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/netfilter/ip6_queue.c

index 7d0780d02d0b270758d00f9e560dce4122d61441..9c50cb19b39b92f845866e59ad094b81c371dab9 100644 (file)
@@ -418,7 +418,16 @@ dev_cmp(struct ipq_queue_entry *entry, unsigned long ifindex)
        if (entry->info->outdev)
                if (entry->info->outdev->ifindex == ifindex)
                        return 1;
-
+#ifdef CONFIG_BRIDGE_NETFILTER
+       if (entry->skb->nf_bridge) {
+               if (entry->skb->nf_bridge->physindev &&
+                   entry->skb->nf_bridge->physindev->ifindex == ifindex)
+                       return 1;
+               if (entry->skb->nf_bridge->physoutdev &&
+                   entry->skb->nf_bridge->physoutdev->ifindex == ifindex)
+                       return 1;
+       }
+#endif
        return 0;
 }