patch-1.3.44 linux/drivers/net/seeq8005.c
Next file: linux/drivers/net/sk_g16.c
Previous file: linux/drivers/net/ni65.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Fri Nov 24 16:39:53 1995
- Orig file:
v1.3.43/linux/drivers/net/seeq8005.c
- Orig date:
Wed Nov 8 07:11:33 1995
diff -u --recursive --new-file v1.3.43/linux/drivers/net/seeq8005.c linux/drivers/net/seeq8005.c
@@ -85,7 +85,7 @@
static void seeq8005_rx(struct device *dev);
static int seeq8005_close(struct device *dev);
static struct enet_statistics *seeq8005_get_stats(struct device *dev);
-static void set_multicast_list(struct device *dev, int num_addrs, void *addrs);
+static void set_multicast_list(struct device *dev);
/* Example routines you must write ;->. */
#define tx_done(dev) (inw(SEEQ_STATUS) & SEEQSTAT_TX_ON)
@@ -608,7 +608,7 @@
best-effort filtering.
*/
static void
-set_multicast_list(struct device *dev, int num_addrs, void *addrs)
+set_multicast_list(struct device *dev)
{
/*
* I _could_ do upto 6 addresses here, but wont (yet?)
@@ -623,6 +623,7 @@
if (num_addrs) { /* Enable promiscuous mode */
outw( (inw(SEEQ_CFG1) & ~SEEQCFG1_MATCH_MASK)| SEEQCFG1_MATCH_ALL, SEEQ_CFG1);
+ dev->flags|=IFF_PROMISC;
} else { /* Disable promiscuous mode, use normal mode */
outw( (inw(SEEQ_CFG1) & ~SEEQCFG1_MATCH_MASK)| SEEQCFG1_MATCH_BROAD, SEEQ_CFG1);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this