From nobody@FreeBSD.org  Thu Jan  4 16:26:02 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 792BA16A506
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Jan 2007 16:26:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 69EBD13C458
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  4 Jan 2007 16:26:02 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l04GQ2mi071075
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 4 Jan 2007 16:26:02 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l04GQ2ms071074;
	Thu, 4 Jan 2007 16:26:02 GMT
	(envelope-from nobody)
Message-Id: <200701041626.l04GQ2ms071074@www.freebsd.org>
Date: Thu, 4 Jan 2007 16:26:02 GMT
From: Johan Strm<johan@stromnet.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ng_fec and IPv6 (problem might also affect carp)
X-Send-Pr-Version: www-3.0

>Number:         107523
>Category:       kern
>Synopsis:       [ipv6] ng_fec and IPv6 (problem might also affect carp)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 04 16:30:13 GMT 2007
>Closed-Date:    Sun Jun 10 07:43:24 GMT 2007
>Last-Modified:  Tue Jul 10 03:39:28 UTC 2012
>Originator:     Johan Strm
>Release:        6.1-RELEASE-p11
>Organization:
Stromnet
>Environment:
FreeBSD gw-2.stromnet.se 6.1-RELEASE-p11 FreeBSD 6.1-RELEASE-p11 #5: Sat Dec 23 00:16:35 CET 2006     johan@elfi.stromnet.se:/usr/obj/usr/src/sys/ROUTER.POLLING  i386

>Description:
I'am using ng_fec with VLAN support (kern/102540).
On one box, gw-2, I has fec0 consisting of hme0-4, and on top of fec0 I have vlan10 and a few more.

When one of my boxes on VLAN 10 starts and tries to use IPv6 through this box (gw-2, IPv4/6 router), it has problems finding it.

tcpdumping on the other box it seems its sending neighbour solicitations for gw-2s address. Hower, tcpdumping on gw-2's vlan10 does not reveal any neighbour solicitations at all.. dumping on fec0 doesnt show anything either..
However, if i start dumping on hme0 (which also means putting hme0 into promisc mode), I see the packets and in an instant gw-2 responds with a neighbour advertisement and the other box can now start to talk with gw-2.
Reproduced it today, the other box had been restarted, and it failed to talk IPv6 with gw-2. Did an ifconfig hme0 promisc and immediatly traffic started flowing.

So, it seems fec doesnt tell the interfaces below to accept some special traffic (these solicitations, are they multicast? im not sure..)

I have tried to run carp ontop of the vlan interfaces too, without much luck.. Or some strange luck, it worked then i rebooted the box and i didnt get it to work again.. However I never tested if promisc'ing the interface helped, but it might very well do (i had used tcpdump alot before i rebooted it so that might have been why it worked).

So, ng_fec doesnt seem to tell the underlying interface what to listen for properly or something?


>How-To-Repeat:
Use ng_fec with a vlan interface (not sure this is required though, havent tried directly on ng_fec)
Setup an IPv6 address on the vlan (or fec?) interface
Try to ping6 the IPv6 address from another box
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dwmalone 
Responsible-Changed-By: dwmalone 
Responsible-Changed-When: Tue May 15 09:14:08 UTC 2007 
Responsible-Changed-Why:  
Hi Johan, 

Can you try the patch at: 

http://www.maths.tcd.ie/~dwmalone/ng_fec.diff 

I think this fixes ng_fec's problems with multicast filtering. To 
be honest, I don't know how it will interact with the VLAN patch. 

David. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107523 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/107523: commit references a PR
Date: Fri, 18 May 2007 15:05:55 +0000 (UTC)

 dwmalone    2007-05-18 15:05:49 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/netgraph         ng_fec.c 
   Log:
   Help ng_fec deal with multicast addresses.
   
   While ng_fec called the ioctl to let interfaces in the bundle know
   the list of multicast addresses had changed, it never actually
   updated that list on the interfaces in the bundle. Consequently,
   the multicast filters could be programmed incorrectly.
   
   if_lagg does this correctly, by maintaining a list of addresses
   that it has added to interfaces in the bundle. This commit basically
   takes the if_lagg code and adds it to ng_fec.
   
   A version of this patch for RELENG_6 has fixed some problems with
   IPv6 ND over ng_fec. This is probably the problem in PR 107523.
   
   PR:             107523
   Tested by:      Rob Gallagher <robert.gallagher@heanet.ie>
   Obtained from:  if_lagg
   MFC after:      3 weeks
   
   Revision  Changes    Path
   1.30      +77 -2     src/sys/netgraph/ng_fec.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: dwmalone 
State-Changed-When: Sun Jun 10 07:41:35 UTC 2007 
State-Changed-Why:  
I believe I've fixed this problem in RELENG_6 and HEAD. I don't plan to 
backport to earlier releases, because I can't test the code myself. 

David. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=107523 
Responsible-Changed-From-To: dwmalone->freebsd-bugs 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Tue Jul 10 03:39:27 UTC 2012 
Responsible-Changed-Why:  
over to the pool (approved by bugmeister) 

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