From 7b5cf8de2dccafa565a62908d307f2033ee69420 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sat, 13 Jan 2018 11:41:37 +0100 Subject: [PATCH] ether79c970: dont disable promisc mode when multicast table is not empty --- sys/src/9/pc/ether79c970.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/src/9/pc/ether79c970.c b/sys/src/9/pc/ether79c970.c index 28698ec88..a0577f818 100644 --- a/sys/src/9/pc/ether79c970.c +++ b/sys/src/9/pc/ether79c970.c @@ -299,7 +299,7 @@ promiscuous(void* arg, int on) ctlr->iow(ctlr, Rap, 15); x = ctlr->ior(ctlr, Rdp) & ~Prom; - if(on) + if(on || ether->nmaddr > 0) x |= Prom; ctlr->iow(ctlr, Rdp, x); ctlr->iow(ctlr, Rap, 0); @@ -315,7 +315,8 @@ promiscuous(void* arg, int on) static void multicast(void* arg, uchar*, int) { - promiscuous(arg, 1); + Ether *ether = arg; + promiscuous(arg, ether->prom); } static void