Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2013 23:17:29 GMT
From:      Andrew White <andywhite@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/180818: rtadvd generates warnings when using in dhcp-pd enviroment
Message-ID:  <201307242317.r6ONHT3v058028@oldred.freebsd.org>
Resent-Message-ID: <201307242320.r6ONK0xD039518@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         180818
>Category:       bin
>Synopsis:       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:
>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201307242317.r6ONHT3v058028>