[Devel] Re: [PATCH 1/2] C/R: Support for IPv6 addresses on network devices

Brian Haley brian.haley at hp.com
Tue Mar 30 12:56:45 PDT 2010


Dan Smith wrote:
> BH> Well, in most cases you could ignore the global addresses as well,
> BH> since if they were auto-configured they'll be generated again on
> BH> the next Router Advertisement.  That's why they're removed on an
> BH> ifdown, but the permanent ones aren't (any more).
> 
> So, I just checked... All of my link-local addresses have the
> IFA_F_PERMANENT flag (0x80) set as well.  What am I missing?

Sorry, I was recalling this from memory without looking at the code.

link-locals are always marked "permanent"
global addresses added by hand are marked "permanent"
global addresses added by auto-configuration are marked "dynamic"
	(/sbin/ip prints this if IFA_F_PERMANENT is not set)

That way you can tell if they were added by the kernel or the user.

-Brian
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list