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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux