Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Set IFF_ALLMULTI bit appropriately when we fall ...



details:   https://anonhg.NetBSD.org/src/rev/d99d14c82b0a
branches:  trunk
changeset: 446802:d99d14c82b0a
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Dec 20 02:52:59 2018 +0000

description:
Set IFF_ALLMULTI bit appropriately when we fall back to "allmulti".

diffstat:

 sys/dev/usb/if_mue.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 39783a5cae5a -r d99d14c82b0a sys/dev/usb/if_mue.c
--- a/sys/dev/usb/if_mue.c      Thu Dec 20 02:38:28 2018 +0000
+++ b/sys/dev/usb/if_mue.c      Thu Dec 20 02:52:59 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_mue.c,v 1.23 2018/12/11 16:45:49 martin Exp $       */
+/*     $NetBSD: if_mue.c,v 1.24 2018/12/20 02:52:59 rin Exp $  */
 /*     $OpenBSD: if_mue.c,v 1.3 2018/08/04 16:42:46 jsg Exp $  */
 
 /*
@@ -20,7 +20,7 @@
 /* Driver for Microchip LAN7500/LAN7800 chipsets. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.23 2018/12/11 16:45:49 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.24 2018/12/20 02:52:59 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1331,7 +1331,8 @@
        rxfilt |= MUE_RFE_CTL_BROADCAST;
 
        if (ifp->if_flags & (IFF_ALLMULTI | IFF_PROMISC)) {
-allmulti:      rxfilt |= MUE_RFE_CTL_MULTICAST;
+allmulti:      ifp->if_flags |= IFF_ALLMULTI;
+               rxfilt |= MUE_RFE_CTL_MULTICAST;
                if (ifp->if_flags & IFF_PROMISC) {
                        rxfilt |= MUE_RFE_CTL_UNICAST;
                        DPRINTF(sc, "promisc\n");



Home | Main Index | Thread Index | Old Index