From owner-IPv6-jp@jp.freebsd.org  Sun Jan 23 03:51:25 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id DAA98864;
	Sun, 23 Jan 2000 03:51:25 +0900 (JST)
	(envelope-from owner-IPv6-jp@jp.FreeBSD.org)
Received: from titanic.tomato.kansai.oki.co.jp (okigate.oki.co.jp [202.226.91.194])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id DAA98859
	for <IPv6-jp@jp.freebsd.org>; Sun, 23 Jan 2000 03:51:24 +0900 (JST)
	(envelope-from nakagawa@kansai.oki.co.jp)
Received: from localhost (localhost.tomato.kansai.oki.co.jp [127.0.0.1])
	by titanic.tomato.kansai.oki.co.jp (8.9.3/3.7W) with ESMTP id DAA38267;
	Sun, 23 Jan 2000 03:50:23 +0900 (JST)
To: IPv6-jp@jp.freebsd.org
In-Reply-To: <200001221530.e0MFUwi57663@peace.mahoroba.org>
References: <200001221530.e0MFUwi57663@peace.mahoroba.org>
	<15922.948561639@lychee.itojun.org>
X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit
Message-Id: <20000123035023V.nakagawa@kansai.oki.co.jp>
Date: Sun, 23 Jan 2000 03:50:23 +0900
From: Satoshi Nakagawa <nakagawa@kansai.oki.co.jp>
X-Dispatcher: imput version 990905(IM130)
Lines: 49
Reply-To: IPv6-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: IPv6-jp 517
Subject: [IPv6-jp 517] Re: source address selection via gif
Errors-To: owner-IPv6-jp@jp.freebsd.org
Sender: owner-IPv6-jp@jp.freebsd.org
X-Originator: nakagawa@kansai.oki.co.jp

$BCf@n(B@OKI$B$G$9!#(B

From: Hajimu UMEMOTO ($BG_K\(B $BH%(B) <ume@mahoroba.org>
Subject: [IPv6-jp 513] source address selection via gif
Date: Sun, 23 Jan 2000 00:30:58 +0900 (JST)

>   KAME $B$N(B source address selection $B$K$D$$$F<ALd$5$;$F2<$5$$!#(B

$B$*$J$8$/!"$A$g$C$HJL7o$G!"(Bsource address selection $B$K$D$$$F<ALd$5$;$F(B
$B2<$5$$!#(B

$B:G6a$K$J$C$F$h$&$d$/(B IPv6 $B$7;O$a$?$P$+$j$G!"$^$@(B global address $B$H$C$F(B
$B$J$$$N$G!"(Bsite-local $B$D$1$F$k$s$G$9$,!D(B

>   IMPLEMENTATION $B$K!"(B
> 
>     1. If the source address is explicitly specified by the user
>        (e.g. via the advanced API), the specified address is used.
>     2. If there is an address assigned to the outgoing interface
>        (which is usually determined by looking up the routing table)
>        that has the same scope as the destination address, the address
>        is used.
>        This is the most typical case.
>     3. If there is no address that satisfies the above condition,
>        choose a global address assigned to one of the interfaces
>        on the sending node.
>     4. If there is no address that satisfies the above condition and
>        there is no global address on the sending node, choose the
>        address associated with the routing table entry for the destination.
>        This is the last resort, which may cause scope violation.

>   outgoing if $B$,(B numbered $B$N>l9g!"(B2. $B$K$h$j(B destination address $B$K1~$8(B
> $B$FA*Br$5$l$k$o$1$G$9$,!"(Boutgoing if $B$,(B unnumbered $B$J(B tunnel $B$N>l9g!"(B
> 3. $B$K$h$j!"0lHLE*$K$O(B NIC $B$K?6$i$l$?:G=i$N(B global address $B$,A*Br$5$l$k(B

site-local only $B$J(B node $B$G$O!"(B3 $B$K$9$i%^%C%A$7$J$/$J$j(B link-local $B$GC}$C(B
$B$F$7$^$&$N$G!"(Btunnel $B$r$L$1$?=P8}$N$5$i$K@h$N!"F1$8(B site $B$N$D$b$j$J@$(B
$B3&$H$*OC$G$-$J$/$F:$$C$?$N$G!"(B

    3.5 global address $B$r;}$C$F$$$J$$(B node $B$G!"(Bdestination address $B$N(B
        scope $B$,(B site-local $B$J$i!"B>$N(B interface $B$N(B site-local $B$bC5$9!#(B

$B$H$$$&%Q%C%A$rEv$F$F;H$C$F$$$^$9!#(B

# $B<ALd$K$J$C$F$J$$!D(B

$B$3$l$C$F$-$C$H$*$+$7$$$s$G$9$h$M!#(B

# IPv6 $B$7$m$&$H!D(B
