NetBSD-Bugs archive

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

kern/57648: ure(4) ignores multicasts in promisc mode



>Number:         57648
>Category:       kern
>Synopsis:       ure(4) ignores multicasts in promisc mode
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 08 20:35:01 +0000 2023
>Originator:     sc.dying%gmail.com@localhost
>Release:        NetBSD-10.99.10 (and netbsd-10)
>Organization:
>Description:
	ure(4) ignores multicast-but-not-broadcast packets in promisc
	mode because ure forgets setting multicast filter to accept all.

>How-To-Repeat:
	code comparison with netbsd-9
>Fix:

Please apply this patch.

--- sys/dev/usb/if_ure.c.orig	2022-09-16 22:11:45.019756111 +0000
+++ sys/dev/usb/if_ure.c	2023-10-08 19:35:26.905586897 +0000
@@ -358,6 +358,7 @@ ure_uno_mcast(struct ifnet *ifp)
 		/* run promisc. mode */
 		rxmode |= URE_RCR_AM;	/* ??? */
 		rxmode |= URE_RCR_AAP;
+		mchash[0] = mchash[1] = ~0U;
 		goto update;
 	}
 	ec->ec_flags &= ~ETHER_F_ALLMULTI;



Home | Main Index | Thread Index | Old Index