From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Haley Subject: Re: [PATCH 1/2] C/R: Support for IPv6 addresses on network devices Date: Tue, 30 Mar 2010 15:56:45 -0400 Message-ID: <4BB2577D.5060005@hp.com> References: <1269459625-21033-1-git-send-email-danms@us.ibm.com> <1269459625-21033-2-git-send-email-danms@us.ibm.com> <4BABC967.5090908@hp.com> <87aatwf74u.fsf@caffeine.danplanet.com> <4BABD594.1020301@hp.com> <87634jf63u.fsf@caffeine.danplanet.com> <4BB21A45.4050300@hp.com> <87zl1peqd4.fsf@caffeine.danplanet.com> <4BB22F73.60704@hp.com> <87r5n1el9z.fsf@caffeine.danplanet.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87r5n1el9z.fsf-FLMGYpZoEPULwtHQx/6qkW3U47Q5hpJU@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Dan Smith Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org List-Id: containers.vger.kernel.org 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