kern/122839: [multicast] FreeBSD 7 multicast routing problem

Tomas Svensson tomas at tutus.se
Wed Apr 23 13:50:04 UTC 2008


The following reply was made to PR kern/122839; it has been noted by GNATS.

From: Tomas Svensson <tomas at tutus.se>
To: bug-followup at FreeBSD.org, 4pr at 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


More information about the freebsd-net mailing list