Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Mar 2000 10:09:00 +0900
From:      Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To:        wollman@khavrinen.lcs.mit.edu
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: IPv6 setup...
Message-ID:  <20000314100900D.shin@nd.net.fujitsu.co.jp>
In-Reply-To: <200003131513.KAA35922@khavrinen.lcs.mit.edu>
References:  <Pine.BSF.4.21.0003121646200.774-100000@cr759667-a.nvcr1.bc.wave.home.com> <20000313102208Z.shin@nd.net.fujitsu.co.jp> <200003131513.KAA35922@khavrinen.lcs.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
> >   echo 24.113.25.85 | sed -e s/"\."/" "/g | awk '{$5 = $1*256 + $2; $6 = $3*256 + $4; printf "2002:%x:%x:\n", $5, $6}'
> 
> Or, without only one extra process:
> 
> myaddr=24.113.25.85
> OIFS="$IFS"
> IFS=".$IFS"
> set $myaddr
> IFS="$OIFS"
> printf "2002:%x:%x:\n" $(($1 * 256 + $2)) $(($3 * 256 + $4))
> 
> -GAWollman

It's fine.
I'll also use it in /etc/rc.network6.

Thanks,
Yoshinobu Inoue




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000314100900D.shin>