From jr@opal.com  Thu Dec  9 22:49:22 2010
Return-Path: <jr@opal.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 5FA87106566C
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Dec 2010 22:49:22 +0000 (UTC)
	(envelope-from jr@opal.com)
Received: from mho-01-ewr.mailhop.org (mho-01-ewr.mailhop.org [204.13.248.71])
	by mx1.freebsd.org (Postfix) with ESMTP id 2FF858FC16
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  9 Dec 2010 22:49:21 +0000 (UTC)
Received: from pool-141-154-200-118.bos.east.verizon.net ([141.154.200.118] helo=homobox.opal.com)
	by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256)
	(Exim 4.68)
	(envelope-from <jr@opal.com>)
	id 1PQpIf-0007XK-CF
	for FreeBSD-gnats-submit@freebsd.org; Thu, 09 Dec 2010 22:49:21 +0000
Received: from opal.com (localhost [IPv6:::1])
	by homobox.opal.com (8.14.4/8.14.4) with ESMTP id oB9MnJAG002867
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 9 Dec 2010 17:49:19 -0500 (EST)
	(envelope-from jr@opal.com)
Received: from homobox.opal.com ([127.0.0.1] helo=homobox.opal.com) with
	IPv4:25 by opal.com; 9 Dec 2010 17:49:19 -0500
Received: (from root@localhost)
	by homobox.opal.com (8.14.4/8.14.4/Submit) id oB9MnJSi002866;
	Thu, 9 Dec 2010 17:49:19 -0500 (EST)
	(envelope-from jr)
Message-Id: <201012092249.oB9MnJSi002866@homobox.opal.com>
Date: Thu, 9 Dec 2010 17:49:19 -0500 (EST)
From: "J.R. Oldroyd" <fbsd@opal.com>
Reply-To: "J.R. Oldroyd" <fbsd@opal.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] net/freenet6 breaks rtadvd(8)
X-Send-Pr-Version: 3.113
X-GNATS-Notify: edwin@mavetju.org

>Number:         152972
>Category:       ports
>Synopsis:       [patch] net/freenet6 breaks rtadvd(8)
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    edwin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 09 22:50:08 UTC 2010
>Closed-Date:    Fri Mar 18 10:15:42 UTC 2011
>Last-Modified:  Fri Mar 18 10:15:42 UTC 2011
>Originator:     J.R. Oldroyd
>Release:        FreeBSD 8.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD xx.opal.com 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #5: Sat Dec 4 23:01:56 EST 2010 xx@xx.opal.com:/usr/obj/usr/src/sys/XX i386
>Description:
The net/freenet6 port takes it upon itself to manipulate the rtadvd(8) daemon.

Doing so might make sense in the event that there is a single network behind
the freenet6 IPv6 tunnel and the entire prefix is to be deployed on that single
network.

However, if there is a more sophisticated IPv6 subnet setup with the freenet6
prefix split between several networks, freenet6's attempt to manipulate rtadvd
will not work properly.

The patch below removes the rtadvd start/stop from freenet6, allowing rtadvd
to be configured and run independently of freenet6.  Alternative patches, which
more cleverly determine when freenet6 should or should not start/stop rtadvd
would also be acceptable.
>How-To-Repeat:
Configure /etc/rtadvd.conf for separate IPv6 subnets on multiple network interfaces.
Configure rtadvd_interfaces in /etc/rc.conf to have list of multiple interfaces.
Run rtadvd; observe RAs going to those multiple interfaces.
Start freenet6.
Observe that rtadvd has been killed and is now restarted with only freenet6's
TSP_HOME_INTERFACE interface argument.
Observe no RAs going to the other interfaces any more.
>Fix:
--- gw6c-freebsd.sh.orig	2010-12-07 00:16:12.000000000 -0500
+++ gw6c-freebsd.sh	2010-12-07 00:20:59.000000000 -0500
@@ -119,7 +119,7 @@
     ExecNoCheck $ifconfig $TSP_HOME_INTERFACE inet6 $TSP_PREFIX::1 delete
 
     # Kill router advertisement daemon gracefully (SIGTERM)
-    KillProcess rtadvd
+#    KillProcess rtadvd
   fi
 
   # Delete any routes
@@ -225,8 +225,8 @@
       Display 1 "Adding prefix to $TSP_HOME_INTERFACE"
       Exec $ifconfig $TSP_HOME_INTERFACE inet6 $TSP_PREFIX::1 prefixlen 64  
       # Router advertisement startup
-      KillProcess rtadvd
-      Exec $rtadvd $TSP_HOME_INTERFACE  
+#      KillProcess rtadvd
+#      Exec $rtadvd $TSP_HOME_INTERFACE  
     fi
 
 ##################
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->edwin 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Dec 9 22:50:14 UTC 2010 
Responsible-Changed-Why:  
edwin@mavetju.org => edwin@ (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=152972 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Dec 9 22:50:20 UTC 2010 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

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

From: Edwin Groothuis <edwin@FreeBSD.org>
To: edwin@mavetju.org
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/152972: [patch] net/freenet6 breaks rtadvd(8)
Date: Thu, 9 Dec 2010 22:50:18 UT

 Maintainer of net/freenet6,
 
 Please note that PR ports/152972 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/152972
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org
State-Changed-From-To: feedback->closed 
State-Changed-By: miwi 
State-Changed-When: Fri Mar 18 10:15:41 UTC 2011 
State-Changed-Why:  
maintainer timeout. 

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