Date: Wed, 23 Apr 2008 13:50:03 GMT From: Tomas Svensson <tomas@tutus.se> To: freebsd-net@FreeBSD.org Subject: Re: kern/122839: [multicast] FreeBSD 7 multicast routing problem Message-ID: <200804231350.m3NDo37x075547@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/122839; it has been noted by GNATS.
From: Tomas Svensson <tomas@tutus.se>
To: bug-followup@FreeBSD.org, 4pr@legis.krsn.ru
Cc:
Subject: Re: kern/122839: [multicast] FreeBSD 7 multicast routing problem
Date: Wed, 23 Apr 2008 15:16:56 +0200
There is an obvious bug in the em driver regarding promiscuous multicast
(ALLMULTI), and I believe the following is the correct solution:
Index: if_em.c
===================================================================
RCS file: /usr/local/cvsroot/FreeBSD7/sys/dev/em/if_em.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 if_em.c
--- if_em.c 3 Mar 2008 13:50:01 -0000 1.1.1.1
+++ if_em.c 23 Apr 2008 10:43:23 -0000
@@ -1080,7 +1080,7 @@
if (ifp->if_flags & IFF_UP) {
if ((ifp->if_drv_flags & IFF_DRV_RUNNING)) {
if ((ifp->if_flags ^ adapter->if_flags) &
- IFF_PROMISC) {
+ (IFF_PROMISC | IFF_ALLMULTI)) {
em_disable_promisc(adapter);
em_set_promisc(adapter);
}
It fixes the problem for me on FreeBSD 7.0 and FreeBSD 6.2.
Best regards,
-Tomas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804231350.m3NDo37x075547>
