From nobody@FreeBSD.org  Wed Jul 24 23:17:30 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id 1430E297
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Jul 2013 23:17:30 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id 01A4D2117
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Jul 2013 23:17:30 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r6ONHTBj058029
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 24 Jul 2013 23:17:29 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r6ONHT3v058028;
	Wed, 24 Jul 2013 23:17:29 GMT
	(envelope-from nobody)
Message-Id: <201307242317.r6ONHT3v058028@oldred.freebsd.org>
Date: Wed, 24 Jul 2013 23:17:29 GMT
From: Andrew White <andywhite@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: rtadvd generates warnings when using in dhcp-pd enviroment
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         180818
>Category:       bin
>Synopsis:       [patch] rtadvd(8): rtadvd generates warnings when using in dhcp-pd enviroment
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 24 23:20:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Fri Jul 26 06:29:26 UTC 2013
>Originator:     Andrew White
>Release:        8.3
>Organization:
none
>Environment:
FreeBSD fbsd83.blah.com 8.3-RELEASE FreeBSD 8.3-RELEASE #0: Mon Apr  9 21:47:23 UTC 2012     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
when using freebsd in dhcp-pd configuration, rtadvd logs that RA are received on an interface that isn't configured.  This is expected behaviour and the logs should not log for this situation.
>How-To-Repeat:
configure freebsd for DHCP-PD, startup rtadvd for your inside interface with no confiuration for your outside interface.
>Fix:
use the sysctl RFC6204W3 to decide to log these messages or not.

Patch attached with submission follows:

--- /usr/src/usr.sbin/rtadvd/rtadvd.c   2012-03-03 06:15:13.000000000 +0000
+++ /tmp/rtadvd.c       2013-07-24 23:11:50.000000000 +0000
@@ -1075,7 +1075,7 @@
                return (0);
        }

-       return (ifi->ifi_nd_flags & ND6_IFF_ACCEPT_RTADV);
+       return ((ifi->ifi_nd_flags & ND6_IFF_ACCEPT_RTADV) && (getinet6sysctl(IPV6CTL_RFC6204W3) == 0));
 #endif
 }


>Release-Note:
>Audit-Trail:
>Unformatted:
