diff options
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index cc90363d7e7a..d7d0310dca9d 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c | |||
@@ -1692,9 +1692,9 @@ static int packet_dev_mc(struct net_device *dev, struct packet_mclist *i, | |||
1692 | if (i->alen != dev->addr_len) | 1692 | if (i->alen != dev->addr_len) |
1693 | return -EINVAL; | 1693 | return -EINVAL; |
1694 | if (what > 0) | 1694 | if (what > 0) |
1695 | return dev_mc_add(dev, i->addr, i->alen, 0); | 1695 | return dev_mc_add(dev, i->addr); |
1696 | else | 1696 | else |
1697 | return dev_mc_delete(dev, i->addr, i->alen, 0); | 1697 | return dev_mc_del(dev, i->addr); |
1698 | break; | 1698 | break; |
1699 | case PACKET_MR_PROMISC: | 1699 | case PACKET_MR_PROMISC: |
1700 | return dev_set_promiscuity(dev, what); | 1700 | return dev_set_promiscuity(dev, what); |
@@ -1706,9 +1706,9 @@ static int packet_dev_mc(struct net_device *dev, struct packet_mclist *i, | |||
1706 | if (i->alen != dev->addr_len) | 1706 | if (i->alen != dev->addr_len) |
1707 | return -EINVAL; | 1707 | return -EINVAL; |
1708 | if (what > 0) | 1708 | if (what > 0) |
1709 | return dev_unicast_add(dev, i->addr); | 1709 | return dev_uc_add(dev, i->addr); |
1710 | else | 1710 | else |
1711 | return dev_unicast_delete(dev, i->addr); | 1711 | return dev_uc_del(dev, i->addr); |
1712 | break; | 1712 | break; |
1713 | default: | 1713 | default: |
1714 | break; | 1714 | break; |