From owner-freebsd-stable@FreeBSD.ORG Fri Dec 21 12:23:37 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 84E073E0; Fri, 21 Dec 2012 12:23:37 +0000 (UTC) (envelope-from kpaasial@gmail.com) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) by mx1.freebsd.org (Postfix) with ESMTP id DAC348FC13; Fri, 21 Dec 2012 12:23:36 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id o1so2694236wic.0 for ; Fri, 21 Dec 2012 04:23:30 -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; bh=GXRIYJ5xA8NqL4NYr35RlFC2L+TTt/WICCTTVJn097k=; b=lOKdJwGe/33Fio8m7ZA1zij7vUXSZHPyriLby/znDUYLCiGU4JCWvMpobfEmky4Sv9 mq/xuZazo2e4ZAfPiTCnMMwUhGoiKvGlNTzt9MgOT5haup8H++e6oGbyoCkTpFc289T3 Z6ut7tRMuyCisNTcQpX4NaS+02WsEY0X9ZuS19zq/Kim0BDFn/1aP3Vlr3SKsgOSM1Tq 82rNjPF4meqw2j60VgxPu5KLSQTme9Xjhq1w08NNxDo0bRpgU7jS/CXEaE8UMCebIxYh Fb10GI90BqRqO1QE1kcnltRB4DYuCn3h81wQ+JSyzhU6kIFjKf44pr8/c0vaf82W08sg ypmQ== MIME-Version: 1.0 Received: by 10.194.23.37 with SMTP id j5mr23310987wjf.28.1356092610360; Fri, 21 Dec 2012 04:23:30 -0800 (PST) Received: by 10.216.172.197 with HTTP; Fri, 21 Dec 2012 04:23:30 -0800 (PST) In-Reply-To: References: <50D1C553.9060100@wasikowski.net> <20121220132750.GB99616@stack.nl> Date: Fri, 21 Dec 2012 14:23:30 +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 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Dec 2012 12:23:37 -0000 On Fri, Dec 21, 2012 at 5:43 AM, Kimmo Paasiala wrote: > On Thu, Dec 20, 2012 at 3:27 PM, Jilles Tjoelker wrote: >> On Thu, Dec 20, 2012 at 01:04:34PM +0200, Kimmo Paasiala wrote: >>> 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). >> >> You cannot assume that /usr/bin is available when setting up the >> network. It may be that /usr is mounted via NFS. >> >> You can use hexadecimal numbers (prefixed with 0x) in $((...)) >> expressions. In FreeBSD 9.0 or newer, sh has a printf builtin you can >> use; in older versions you can use hexdigit and hexprint from >> network.subr. >> >> -- >> Jilles Tjoelker > > Thanks, I've rewitten my patch to support ranges. It is attached in > this message. > > Again it's against a very recent 9-STABLE, I still haven't found time > to see if it applies to CURRENT. > > It does allow you to do crazy stuff like > > ipv6_addrs_re0="2001:db8:1111:2222::1-ffff/64" > > However I didn't find anything to limit the number of aliases in the > ipv4 version of the function either. > > Please test it :) > > > Then a question about the PR > (http://www.freebsd.org/cgi/query-pr.cgi?pr=174225) I wrote, how can I > attach this new patch to it? The submit follow up -button fires up my > email client and I'm not so sure how to submit a new patch for the PR > in an email in such a way that it appears properly formatted in the > PR. > > Regards, > > Kimmo Paasiala PR updated with the new patch. -Kimmo