From owner-svn-src-stable@FreeBSD.ORG Mon Dec 19 13:12:38 2011 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 544061065677; Mon, 19 Dec 2011 13:12:38 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 42A8A8FC19; Mon, 19 Dec 2011 13:12:38 +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 pBJDCcrH058946; Mon, 19 Dec 2011 13:12:38 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBJDCcu6058944; Mon, 19 Dec 2011 13:12:38 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201112191312.pBJDCcu6058944@svn.freebsd.org> From: Gleb Smirnoff Date: Mon, 19 Dec 2011 13:12:38 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228705 - stable/9/etc X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Dec 2011 13:12:38 -0000 Author: glebius Date: Mon Dec 19 13:12:37 2011 New Revision: 228705 URL: http://svn.freebsd.org/changeset/base/228705 Log: Merge r228472. For the sake of POLA for the whole 9.x timeline add compatibility support for specifing IPv4 aliases in rc.conf without the "inet" keyword. Approved by: re (bz) Modified: stable/9/etc/network.subr Directory Properties: stable/9/etc/ (props changed) Modified: stable/9/etc/network.subr ============================================================================== --- stable/9/etc/network.subr Mon Dec 19 12:51:12 2011 (r228704) +++ stable/9/etc/network.subr Mon Dec 19 13:12:37 2011 (r228705) @@ -716,9 +716,16 @@ ifalias_ipv4_up() inet\ *) ifconfig $1 ${ifconfig_args} alias && _ret=0 ;; + inet6\ *) + ;; "") break ;; + *) + warn "\$ifconfig_$1_alias${alias} needs " \ + "\"inet\" keyword for an IPv4 address." + ifconfig $1 ${ifconfig_args} alias && _ret=0 + ;; esac alias=$((${alias} + 1)) done