From oli@virvir.rhnet.is  Mon Feb 11 13:10:36 2008
Return-Path: <oli@virvir.rhnet.is>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4D79316A417
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2008 13:10:36 +0000 (UTC)
	(envelope-from oli@virvir.rhnet.is)
Received: from virvir.rhnet.is (virvir.rhnet.is [IPv6:2001:948:10:16::31])
	by mx1.freebsd.org (Postfix) with ESMTP id A6C0213C45A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 11 Feb 2008 13:10:35 +0000 (UTC)
	(envelope-from oli@virvir.rhnet.is)
Received: from virvir.rhnet.is (oli@localhost.rhnet.is [127.0.0.1])
	by virvir.rhnet.is (8.13.8/8.13.8) with ESMTP id m1BDAX8H016874;
	Mon, 11 Feb 2008 13:10:33 GMT
	(envelope-from oli@virvir.rhnet.is)
Received: (from oli@localhost)
	by virvir.rhnet.is (8.13.8/8.13.8/Submit) id m1BDAS7k016873;
	Mon, 11 Feb 2008 13:10:28 GMT
	(envelope-from oli)
Message-Id: <200802111310.m1BDAS7k016873@virvir.rhnet.is>
Date: Mon, 11 Feb 2008 13:10:28 GMT
From: Olafur Osvaldsson <oli@rhnet.is>
Reply-To: Olafur Osvaldsson <oli@rhnet.is>
To: FreeBSD-gnats-submit@freebsd.org
Cc: scottl@samsco.org
Subject: Multicast not accepted on bce devices
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         120533
>Category:       kern
>Synopsis:       [bce] [patch] Multicast not accepted on bce devices
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    vwe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 11 13:20:01 UTC 2008
>Closed-Date:    Sat Jan 31 12:04:54 UTC 2009
>Last-Modified:  Sat Jan 31 12:04:54 UTC 2009
>Originator:     Olafur Osvaldsson
>Release:        FreeBSD 6.2-RELEASE-p10 i386
>Organization:
RHnet
>Environment:
System: FreeBSD virvir.rhnet.is 6.2-RELEASE-p10 FreeBSD 6.2-RELEASE-p10 #2: Sun Feb 10 23:19:45 GMT 2008 root@virvir.rhnet.is:/usr/obj/usr/src/sys/RHNET i386

>Description:
It seems that the bce network device does not accept multicast packets
by default and therefor rendering things like OSPF unusable.

It on the other hand seems to send multicast packets just fine.

The problem by what I have seen was seen as early as 2006 and
discussed on freebsd-current:
http://lists.freebsd.org/pipermail/freebsd-current/2006-November/067220.html
Where Scott Long (Cc'd) reported that he had added this to his TODO list.

It even looks to be the same problem as kern/117456 wich is marked as resolved

>How-To-Repeat:
Try receiving any multicast traffic on a bce interface.

Like installing quagga and set up ospf.

>Fix:
Putting the interface in Promisc mode makes the problem vanish, the attached
patch is another workaround.

--- sys/dev/bce/if_bce.c.orig	Mon Feb 11 12:41:34 2008
+++ sys/dev/bce/if_bce.c	Sun Feb 10 22:25:06 2008
@@ -714,6 +714,7 @@
 	ifp->if_softc        = sc;
 	if_initname(ifp, device_get_name(dev), device_get_unit(dev));
 	ifp->if_flags        = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
+	ifp->if_flags       |= IFF_ALLMULTI; /* Multicast bug workaround */
 	ifp->if_ioctl        = bce_ioctl;
 	ifp->if_start        = bce_start;
 	ifp->if_timer        = 0;

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vwe 
State-Changed-When: Sat Jan 31 12:04:01 UTC 2009 
State-Changed-Why:  
Olafur, 
this issue seems to have been fixed by r166268 in RELENG_6. 
Thank you for your report. 


Responsible-Changed-From-To: freebsd-bugs->vwe 
Responsible-Changed-By: vwe 
Responsible-Changed-When: Sat Jan 31 12:04:01 UTC 2009 
Responsible-Changed-Why:  
track 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120533 
>Unformatted:
