Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Feb 2007 03:47:30 -0500
From:      Randall Stewart <rrs@cisco.com>
To:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Thinking about IPv6 and DEPRECATED addresses
Message-ID:  <45E541A2.4020005@cisco.com>

next in thread | raw e-mail | index | archive | help
All:

I have been deep in the middle of breaking SCTP's dependencies on
looking at ifa structures...

One of the problems I have run in to is that V6 has this
additional set of flags:
ifa6->ia6_flags

And it can have things like:
IN6_IFF_DEPRECATED
IN6_IFF_DETACHED
IN6_IFF_ANYCAST
IN6_IFF_NOTREADY

Now obviously if you have a deprecated or detached address
you probably do not want to use them.. nor do you want to
use a "NOTREADY" since I think that means that DAD has not
finished...

So, I am contemplating adding to rtsock.c the ability to
send these types of events up. I am thinking on adding
this there for two reasons..

a) SCTP already hooks into the routing socket to get
    interface changes.
and

b) It may well be a relevant fact that if an address becomes
    DETACHED or non-DETACHED (etc) for a routing process
    to want to know about..


What do others think? If I am off in the weeds somewhere and
this does not concern the routing socket I could use other
methods .. including isolating the "look at the state" flags
into a special place so that proper locking could be added
when we actually do locking for the ifa's... of course I would
prefer just not to have to look at it :-D

Opinions if this is a good idea or not??

Thanks

R
-- 
Randall Stewart
NSSTG - Cisco Systems Inc.
803-345-0369 <or> 803-317-4952 (cell)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E541A2.4020005>