From owner-freebsd-current@FreeBSD.ORG Thu Dec 20 11:09:40 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E24A8D2D; Thu, 20 Dec 2012 11:09:40 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 47D308FC13; Thu, 20 Dec 2012 11:09:40 +0000 (UTC) Received: by mail-wi0-f170.google.com with SMTP id hq7so1065417wib.5 for ; Thu, 20 Dec 2012 03:09:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=iXiEilyIQV4C+XPhkfHbq/EPS+adrKsmy4Lqkqjr6Gw=; b=l6zvf7jUm0XdmECWmZbcMDNIE+mjti1ka7+4w8JqR4FirsNnfFD4TQCnKHS8zHt6ZR PtrxJS8cd0jGO3XHn3tlcOYDHiAEJo8qcqr17H/GBspQ7gS1oUR+wh7aS4VbjnhA6rh5 rtVGvegRnFMNuOSMxVCyG8Qhq/Qv/1tK/XcqJMvFB7JVwnZXsCm4MBivYdTAzV05/vYW Y9727qgiibJ/asVYytwNe1hEX7XJwqmfesSQVQCkH3R6viK6u6Iio1Y11SBa46YbMbHP YYRxTcZG2dsiVpGUaiq2SRDXpHUiQL2Irps8tZgYjNXN9jaWv9jvB+tI55bCtR6mtQ05 wTpA== MIME-Version: 1.0 Received: by 10.180.103.136 with SMTP id fw8mr8967374wib.27.1356001474162; Thu, 20 Dec 2012 03:04:34 -0800 (PST) Received: by 10.216.172.197 with HTTP; Thu, 20 Dec 2012 03:04:34 -0800 (PST) In-Reply-To: References: <50D1C553.9060100@wasikowski.net> Date: Thu, 20 Dec 2012 13:04:34 +0200 Message-ID: Subject: Re: ipv6_addrs_IF aliases in rc.conf(5) From: Kimmo Paasiala To: freebsd-stable@freebsd.org, freebsd-current@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Dec 2012 11:09:41 -0000 On Wed, Dec 19, 2012 at 11:47 PM, Kimmo Paasiala wrote= : > On Wed, Dec 19, 2012 at 3:46 PM, =C5=81ukasz W=C4=85sikowski > wrote: >> W dniu 2012-12-19 07:14, Kimmo Paasiala pisze: >> >>>> I wrote a small patch for /etc/network.subr to add support for >>>> ipv6_addrs_IF aliases in rc.conf(5) to match the already existing >>>> ipv4_addrs_IF aliases for ipv4 addresses. With this patch the ipv6 >>>> aliases can be written like: >> >> [...] >> >>> Did anyone try my patch? I thought it would be nice to have the >>> ipv6_addrs_IF syntax supported to complement the existing >>> ipv4_addrs_IF alias syntax. >> >> Can I use range syntax in it like in ipv4? I mean something like: >> >> ipv4_addrs_lagg0=3D"x.x.x.10-30/22" >> >> That feature would be very nice to have for ipv6. >> >> -- >> best regards, >> Lukasz Wasikowski > > I have to admit I overlooked the possibility to use ranges like that. > It doesn't look too hard to add that feature as well for ipv6 aliases > using the existing code for ipv4 aliases. I'll prepare a new patch and > update the PR when I have it working. > > -Kimmo A question related to this for those who have been doing work on the rc(8) scripts. Can I assume that /usr/bin is available when network.subr functions are used? Doing calculations on hexadecimal numbers is going to be very awkward if I can't use for example bc(1). -Kimmo