Date: Thu, 8 Jul 2010 14:58:52 +0100 From: Tom Evans <tevans.uk@googlemail.com> To: Krishna.Mohan@my.panasonic.com Cc: freebsd-net@freebsd.org Subject: Re: IPv6 Duplicate Address Detection Message-ID: <AANLkTim_Wh-hNMhxTTxGgcBB3JJj_OKtteyQNXTS6yMp@mail.gmail.com> In-Reply-To: <4C353D91.4060405@my.panasonic.com> References: <4C353D91.4060405@my.panasonic.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 8, 2010 at 3:53 AM, Krishna <Krishna.Mohan@my.panasonic.com> wrote: > Hi, > > I am implementing a user space program to create and assign IPv6 address to > a linux host. > I am able to create and assign the IP successfully. But, if i am assigning > the duplicate address, > still the address gets assigned. I understand the kernel is handling the DAD > and reporting to kernel log. > Is there any way, i can use IOCTL to get the TENTATIVE flag value and delete > the IP if it is duplicate. > By the way, i use IOCTL system call to assign the IP too. > > I went through some posts in freebsd-net where they have mentioned about > "SIOCGIFAFLAG_IN6 ioctl" > which gives the flags value where the TENTATIVE flag value can be plooed. > I tried to use the same API in my user program but failed. > > Can somebody post me the working sample code of SIOCGIFAFLAG ioctl ? > > Thanks, > -Krishna Linux != FreeBSD. Cheers Tom
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTim_Wh-hNMhxTTxGgcBB3JJj_OKtteyQNXTS6yMp>