Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188145
b: refs/heads/master
c: 0821ec5
h: refs/heads/master
i:
  188143: e40e020
v: v3
  • Loading branch information
Herbert Xu authored and David S. Miller committed Mar 16, 2010
1 parent fca5504 commit 5e85758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d00561a2f64b381aefb41f4a140ff5dc373b52e7
refs/heads/master: 0821ec55bb1382dd3b9476dc15d5dbbb19f0c3fd
9 changes: 5 additions & 4 deletions trunk/net/bridge/br_multicast.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,23 @@ static struct net_bridge_mdb_entry *__br_mdb_ip_get(
static struct net_bridge_mdb_entry *br_mdb_ip_get(
struct net_bridge_mdb_htable *mdb, __be32 dst)
{
if (!mdb)
return NULL;

return __br_mdb_ip_get(mdb, dst, br_ip_hash(mdb, dst));
}

struct net_bridge_mdb_entry *br_mdb_get(struct net_bridge *br,
struct sk_buff *skb)
{
struct net_bridge_mdb_htable *mdb = br->mdb;

if (!mdb || br->multicast_disabled)
if (br->multicast_disabled)
return NULL;

switch (skb->protocol) {
case htons(ETH_P_IP):
if (BR_INPUT_SKB_CB(skb)->igmp)
break;
return br_mdb_ip_get(mdb, ip_hdr(skb)->daddr);
return br_mdb_ip_get(br->mdb, ip_hdr(skb)->daddr);
}

return NULL;
Expand Down

0 comments on commit 5e85758

Please sign in to comment.