lkml.org 
[lkml]   [1996]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject3c59x promiscuous mode still broken (fix attached)
Date
The 3c59x driver refuses to put the card into promiscuous mode when asked.
Here's a simple patch (it's against 1.3.69, but it should still work...):

--- 3c59x.orig.c Fri Feb 23 18:13:38 1996
+++ 3c59x.c Fri Feb 23 18:14:24 1996
@@ -1027,7 +1027,8 @@
short ioaddr = dev->base_addr;

if ((dev->mc_list) || (dev->flags & IFF_ALLMULTI)) {
- outw(SetRxFilter|RxStation|RxMulticast|RxBroadcast, ioaddr + EL3_CMD);
+ outw(SetRxFilter|RxStation|RxMulticast|RxBroadcast
+ | ((dev->flags & IFF_PROMISC) ? RxProm : 0) , ioaddr + EL3_CMD);
if (vortex_debug > 3) {
printk("%s: Setting Rx multicast mode, %d addresses.\n",
dev->name, dev->mc_count);

- Ian


\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.073 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site