net: move address list functions to a separate file
+little renaming of unicast functions to be smooth with multicast ones Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
9fc4178b14
commit
a748ee2426
@@ -1705,9 +1705,9 @@ static int packet_dev_mc(struct net_device *dev, struct packet_mclist *i,
|
||||
if (i->alen != dev->addr_len)
|
||||
return -EINVAL;
|
||||
if (what > 0)
|
||||
return dev_unicast_add(dev, i->addr);
|
||||
return dev_uc_add(dev, i->addr);
|
||||
else
|
||||
return dev_unicast_delete(dev, i->addr);
|
||||
return dev_uc_del(dev, i->addr);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user