/* Set or clear the multicast filter for this adaptor to use the best-effort filtering supported. The 3c501 supports only three modes of filtering. It always receives broadcasts and packets for itself. You can choose to optionally receive all packets, or all multicast packets on top of this.  */
static void set_multicast_list(struct net_device *dev)
/* Set or clear the multicast filter for this adaptor to use the best-effort filtering supported. The 3c501 supports only three modes of filtering. It always receives broadcasts and packets for itself. You can choose to optionally receive all packets, or all multicast packets on top of this.  */
static void set_multicast_list(struct net_device *dev)
{
	int ioaddr = dev->base_addr;
	if (dev->flags & IFF_PROMISC) {
		outb(RX_PROM, RX_CMD);
		inb(RX_STATUS);
	} else if (dev->mc_list || dev->flags & IFF_ALLMULTI) {
		outb(RX_MULT, RX_CMD);
		inb(RX_STATUS);
	} else {
		outb(RX_NORM, RX_CMD);
		inb(RX_STATUS);
	}
}