void ip_mc_filter_del(struct device *dev, unsigned long addr) { char buf[6]; if(dev->type!=ARPHRD_ETHER && dev->type!=ARPHRD_FDDI) return; /* Only do ethernet or FDDI for now */ ip_mc_map(addr,buf); dev_mc_delete(dev,buf,ETH_ALEN,0); }
void ip_mc_filter_add(struct device *dev, unsigned long addr) { char buf[6]; if(dev->type!=ARPHRD_ETHER) return; /* Only do ethernet now */ ip_mc_map(addr,buf); dev_mc_add(dev,buf,ETH_ALEN,0); }