Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 347325
b: refs/heads/master
c: 09d7cf7
h: refs/heads/master
i:
  347323: f7708ae
v: v3
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Dec 19, 2012
1 parent 1fc5feb commit bff6f7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 63233159fd4e596568f5f168ecb0879b61631d47
refs/heads/master: 09d7cf7d931c627b227decd080f4528d003ddbe6
6 changes: 4 additions & 2 deletions trunk/net/bridge/br_mdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ static int br_mdb_fill_info(struct sk_buff *skb, struct netlink_callback *cb,
struct br_mdb_entry e;
e.ifindex = port->dev->ifindex;
e.state = p->state;
e.addr.u.ip4 = p->addr.u.ip4;
if (p->addr.proto == htons(ETH_P_IP))
e.addr.u.ip4 = p->addr.u.ip4;
#if IS_ENABLED(CONFIG_IPV6)
e.addr.u.ip6 = p->addr.u.ip6;
if (p->addr.proto == htons(ETH_P_IPV6))
e.addr.u.ip6 = p->addr.u.ip6;
#endif
e.addr.proto = p->addr.proto;
if (nla_put(skb, MDBA_MDB_ENTRY_INFO, sizeof(e), &e)) {
Expand Down

0 comments on commit bff6f7c

Please sign in to comment.