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:
Jiri Pirko
2010-04-01 21:22:09 +00:00
committed by David S. Miller
parent 9fc4178b14
commit a748ee2426
11 changed files with 524 additions and 464 deletions

View File

@@ -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;