From owner-svn-src-all@FreeBSD.ORG Thu Oct 25 08:37:09 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 945A7F50; Thu, 25 Oct 2012 08:37:09 +0000 (UTC) (envelope-from brian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 7902B8FC17; Thu, 25 Oct 2012 08:37:09 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9P8b9S1012404; Thu, 25 Oct 2012 08:37:09 GMT (envelope-from brian@svn.freebsd.org) Received: (from brian@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9P8b9ur012402; Thu, 25 Oct 2012 08:37:09 GMT (envelope-from brian@svn.freebsd.org) Message-Id: <201210250837.q9P8b9ur012402@svn.freebsd.org> From: Brian Somers Date: Thu, 25 Oct 2012 08:37:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242074 - head/etc/rc.d X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Oct 2012 08:37:09 -0000 Author: brian Date: Thu Oct 25 08:37:08 2012 New Revision: 242074 URL: http://svn.freebsd.org/changeset/base/242074 Log: Enable "accept_rtadvd" on interfaces running rtadvd. Without this, rtadvd runs but never advertises a default (IPv6) route. MFC after: 1 week Modified: head/etc/rc.d/rtadvd Modified: head/etc/rc.d/rtadvd ============================================================================== --- head/etc/rc.d/rtadvd Thu Oct 25 05:22:25 2012 (r242073) +++ head/etc/rc.d/rtadvd Thu Oct 25 08:37:08 2012 (r242074) @@ -36,17 +36,24 @@ rtadvd_precmd() # case ${rtadvd_interfaces} in [Aa][Uu][Tt][Oo]|'') + command_args= for i in `list_net_interfaces`; do case $i in lo0) continue ;; esac if ipv6if $i; then - rtadvd_interfaces="${rtadvd_interfaces} ${i}" + command_args="${command_args} ${i}" fi done ;; + *) + command_args="${rtadvd_interfaces}" + ;; esac - command_args="${rtadvd_interfaces}" + + for iface in ${command_args}; do + ifconfig ${iface} inet6 -accept_rtadv + done # Enable Router Renumbering, unicast case # (use correct src/dst addr)