Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103451
b: refs/heads/master
c: 5ae7b44
h: refs/heads/master
i:
  103449: 7a733ac
  103447: 8fb7cc2
v: v3
  • Loading branch information
Wang Chen authored and David S. Miller committed Jul 15, 2008
1 parent c532aa4 commit 47b66e0
Show file tree
Hide file tree
Showing 2 changed files with 10 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: bc3f9076f671f128c82022428992c30be57f22d5
refs/heads/master: 5ae7b444137143a4e067b80354171ab128eb1b2b
11 changes: 9 additions & 2 deletions trunk/net/ipv6/ip6mr.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,7 @@ static int mif6_add(struct mif6ctl *vifc, int mrtsock)
int vifi = vifc->mif6c_mifi;
struct mif_device *v = &vif6_table[vifi];
struct net_device *dev;
int err;

/* Is vif busy ? */
if (MIF_EXISTS(vifi))
Expand All @@ -612,20 +613,26 @@ static int mif6_add(struct mif6ctl *vifc, int mrtsock)
dev = ip6mr_reg_vif();
if (!dev)
return -ENOBUFS;
err = dev_set_allmulti(dev, 1);
if (err) {
unregister_netdevice(dev);
return err;
}
break;
#endif
case 0:
dev = dev_get_by_index(&init_net, vifc->mif6c_pifi);
if (!dev)
return -EADDRNOTAVAIL;
dev_put(dev);
err = dev_set_allmulti(dev, 1);
if (err)
return err;
break;
default:
return -EINVAL;
}

dev_set_allmulti(dev, 1);

/*
* Fill in the VIF structures
*/
Expand Down

0 comments on commit 47b66e0

Please sign in to comment.