kernels/linux-2.4.0/drivers/acorn/net/ether3.c
/*
 * Set or clear promiscuous/multicast mode filter for this adaptor.
 *
 * We don't attempt any packet filtering.  The card may have a SEEQ 8004
 * in which does not have the other ethernet address registers present...
 */
Set or clear promiscuous/multicast mode filter for this adaptor.
We don't attempt any packet filtering.  The card may have a SEEQ 8004
in which does not have the other ethernet address registers present
Set or clear promiscuous / multicast mode filter for this adaptor . We don ' t attempt any packet filtering . The card may have a SEEQ 8004 in which does not have the other ethernet address registers present
static void ether3_setmulticastlist(struct net_device *dev)
{
	struct dev_priv *priv = (struct dev_priv *)dev->priv;
	priv->regs.config1 &= ~CFG1_RECVPROMISC;
	if (dev->flags & IFF_PROMISC) {
		priv->regs.config1 |= CFG1_RECVPROMISC;
	} else if (dev->flags & IFF_ALLMULTI) {
		priv->regs.config1 |= CFG1_RECVSPECBRMULTI;
	} else
		priv->regs.config1 |= CFG1_RECVSPECBROAD;
	ether3_outw(priv->regs.config1 | CFG1_LOCBUFMEM, REG_CONFIG1);
}
static void ether3_setmulticastlist ( struct net_device * dev ) { struct dev_priv * priv = ( struct dev_priv * ) dev -> priv ; priv -> regs . config1 &= ~ CFG1_RECVPROMISC ; if ( dev -> flags & IFF_PROMISC ) { priv -> regs . config1 |= CFG1_RECVPROMISC ; } else if ( dev -> flags & IFF_ALLMULTI ) { priv -> regs . config1 |= CFG1_RECVSPECBRMULTI ; } else priv -> regs . config1 |= CFG1_RECVSPECBROAD ; ether3_outw ( priv -> regs . config1 | CFG1_LOCBUFMEM , REG_CONFIG1 ) ; }
Set or clear promiscuous/multicast mode filter for this adaptor.
Set or clear promiscuous / multicast mode filter for this adaptor .
/* promiscuous mode */