North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

Re: IPv6 routing /48s

  • From: Mark Andrews
  • Date: Tue Dec 09 20:13:20 2008

In message <[email protected]>, Niels Bakker writes:
> * [email protected] (Mark Andrews) [Wed 26 Nov 2008, 03:20 CET]:
> >It's used for both.
> 
> Yet from /usr/src/lib/libc/getaddrinfo.c
> ---
>             /* Rule 7: Prefer native transport. */
>             /* XXX: not implemented yet */
> ---
> 
> But it is not used to distinguish between 2001: and 2002: as ::/0 has a 
> higher precedence in the default FreeBSD IPv6 address selection policy 
> table.  Where does FreeBSD and by extension KAME get its strong 
> preference for 2001: from?  I just can't find the code.
> 
> (I'm reviving this old thread because you chose to ignore my mail to you 
> but did not fail to reply to a single mail I sent to the list concerning 
> this.)

        /* Rule 5: Prefer matching label. */

	If you have a 2001 address and the destination has a 2001 and 2002
	address the 2001 will sort to the top here.

	Mark
-- 
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: [email protected]