From owner-svn-src-head@freebsd.org Tue Sep 3 14:06:24 2019 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2FF1FDC722; Tue, 3 Sep 2019 14:06:19 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46N7zG4f3hz4PPd; Tue, 3 Sep 2019 14:06:18 +0000 (UTC) (envelope-from yuripv@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1452) id CE6301A471; Tue, 3 Sep 2019 14:06:04 +0000 (UTC) X-Original-To: yuripv@localmail.freebsd.org Delivered-To: yuripv@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 53E1C176DB; Fri, 5 Apr 2019 23:16:31 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 742E083A5B; Fri, 5 Apr 2019 23:16:30 +0000 (UTC) (envelope-from owner-src-committers@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 538) id 355FC1768C; Fri, 5 Apr 2019 23:16:30 +0000 (UTC) Delivered-To: src-committers@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 7FA0917689; Fri, 5 Apr 2019 23:16:27 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 13DD983A54; Fri, 5 Apr 2019 23:16:26 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x35NGON7041940; Fri, 5 Apr 2019 16:16:24 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x35NGOSc041939; Fri, 5 Apr 2019 16:16:24 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201904052316.x35NGOSc041939@gndrsh.dnsmgr.net> Subject: Re: svn commit: r345970 - head/libexec/rc In-Reply-To: <201904052245.x35Mj9Rd097169@repo.freebsd.org> To: Eugene Grosbein CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Precedence: bulk X-Loop: FreeBSD.org Sender: owner-src-committers@freebsd.org X-Rspamd-Queue-Id: 742E083A5B X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.99)[-0.990,0]; REPLY(-4.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0] Status: O X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Tue, 03 Sep 2019 14:06:25 -0000 X-Original-Date: Fri, 5 Apr 2019 16:16:24 -0700 (PDT) X-List-Received-Date: Tue, 03 Sep 2019 14:06:25 -0000 > Author: eugen > Date: Fri Apr 5 22:45:08 2019 > New Revision: 345970 > URL: https://svnweb.freebsd.org/changeset/base/345970 > > Log: > network.subr: improve configuration of cloned gif(4) interfaces > > ifconfig(8) syntax allows to specify only single address_family, > so we need additional invocation of ifconfig to support configuration > of cloned gif interface that may use different address families > for its internal and external addresses. > > Also, ifconfig(8) does not allow to omit "inet6" keyword for address family > specifying IPv6 addresses as outer addresses of the interface. > > Also, address_family is not "parameter" and it has to go before parameters > including "tunnel" keyword, so "ifconfig gif0 tunnel inet6 $oip1 $oip2" would be > wrong syntax and only "ifconfig gif0 inet6 tunnel $oip1 $oip2" is right. > > With this change, the following works: > > gifconfig_gif0="inet6 2a00::1 2a01::1" > ifconfig_gif0="inet 10.0.0.1 10.0.0.2 netmask 255.255.255.252" If you want another fun one to wrestle with see if you can make this work: cloned_interfaces="vlan32" ifconfig_em0="up" ifconfig_vlan32="vlan 32 vlandev em0 SYNCDHCP" I have worked around it, but it would be nice if this "just worked". -- Rod Grimes rgrimes@freebsd.org