> > 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message
- Re: IPv6 setup... Yoshinobu Inoue
- Re: IPv6 setup... Daniel C. Sobral
- Re: IPv6 setup... Yoshinobu Inoue
- Re: IPv6 setup... Daniel C. Sobral
- Re: IPv6 setup... Shaun (UNIX)
- Re: IPv6 setup... Shaun (UNIX)
- Re: IPv6 setup... Yoshinobu Inoue
- Re: IPv6 setup... Jun-ichiro itojun Hagino
- Re: IPv6 setup... Yoshinobu Inoue
- Re: IPv6 setup... Garrett Wollman
- Re: IPv6 setup... Yoshinobu Inoue
- Re: IPv6 setup... Brian Somers
- Re: IPv6 setup... Yoshinobu Inoue
- Re: IPv6: can a link-si... Richard Seaman, Jr.
- Re(2): IPv6: can a link-site (or global)... Nora Parker
- Re: IPv6: can a link-site (or global) addres... Jose M. Alcaide
- RE: IPv6: can a link-site (or global) address be ... Richard Draves
