[BRIDGE]: Better fix for netfilter missing symbol has_bridge_parent
authorStephen Hemminger <shemminger@osdl.org>
Mon, 13 Feb 2006 23:43:58 +0000 (15:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Feb 2006 23:43:58 +0000 (15:43 -0800)
Horms patch was the best of the three fixes. Dave, already applied
Harald's version, so this patch converts that to the better one.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_netfilter.c

index c06cb098353095434c28461571c886c7533eea70..6bb0c7eb1ef0300d827d755be0d4eab7f73d600a 100644 (file)
@@ -805,8 +805,8 @@ static unsigned int br_nf_post_routing(unsigned int hook, struct sk_buff **pskb,
 print_error:
        if (skb->dev != NULL) {
                printk("[%s]", skb->dev->name);
-               if (bridge_parent(skb->dev))
-                       printk("[%s]", bridge_parent(skb->dev)->name);
+               if (realoutdev)
+                       printk("[%s]", realoutdev->name);
        }
        printk(" head:%p, raw:%p, data:%p\n", skb->head, skb->mac.raw,
                                              skb->data);