From owner-freebsd-net Fri Feb 1 19:25: 5 2002 Delivered-To: freebsd-net@freebsd.org Received: from urdvg135.cms.usa.net (urdvg135.cms.usa.net [204.68.25.135]) by hub.freebsd.org (Postfix) with SMTP id 17DBE37B400 for ; Fri, 1 Feb 2002 19:24:59 -0800 (PST) Received: (qmail 22966 invoked from network); 2 Feb 2002 03:31:51 -0000 Received: from cpdvg202.cms.usa.net (165.212.10.6) by outbound.postoffice.net with SMTP; 2 Feb 2002 03:31:51 -0000 Received: (qmail 8676 invoked by uid 60001); 2 Feb 2002 03:24:03 -0000 Message-ID: <20020202032403.8675.qmail@cpdvg202.cms.usa.net> Received: from 147.11.38.26 [147.11.38.26] by cpdvg202.cms.usa.net (USANET web-mailer 34FM.0700.28.01B); Sat, 02 Feb 2002 03:24:03 +0000 Date: 1 Feb 2002 19:24:03 PST From: Preety Puri To: freebsd-net@FreeBSD.ORG Subject: Found Possible bugs (IPV6)?? Cc: preetypuri@usa.net X-Mailer: USANET web-mailer (34FM.0700.28.01B) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi ... I have two issues ... both related to the ndp(IPV6)utility : 1. I am trying to add a temporary entry into the neighbor discovery cache= using ndp. I noticed that it has a temp flag inorder to add temporary entries(documented in the man page as well). Here is wot i did : ndp -s 3ffe::1123 1:2:3:4:5:6 temp and here is wot ndp -a displayed : ndp -a = Neighbor Linklayer Address Netif Expire St Flg= s Prbs 3ffe::1234 1:2:3:4:5:6 fxp0 permanent R = = so i am trying to add a temporary entry into the cache but it is always a= dded as a permanant entry ... Is this a known issue/bug ?? 2. The second issue is that the man page for "ndp -p" shows that it displ= ays all the prefix's in the list (that includes link local). The man page for "ndp -P" shows that it flushes all the prefix's in the l= ist. But ndp -P (which is supposed to flush the prefix list) does not = flush the link local address's. = The reason it does'nt flush the entries is as follows : = The ioctl -p SIOCSPFXFLUSH_IN6 in nd6.c (in function nd6_ioctl)explicitly= checks to see if it a link local address and does'nt flush an entry based= on that. File :nd6.c ; Function : nd6_ioctl () (Notice i've pointed the check below using arrows) case SIOCSPFXFLUSH_IN6: { /* flush all the prefix advertised by routers */ struct nd_prefix *pr, *next; s =3D splnet(); for (pr =3D nd_prefix.lh_first; pr; pr =3D next) { struct in6_ifaddr *ia, *ia_next; next =3D pr->ndpr_next; -----> if(IN6_IS_ADDR_LINKLOCAL(&pr->ndpr_prefix.sin6_addr)) <---- continue; /* XXX */ so basically ignore any LINK LOCAL prefix's that are in the table. = If we are allowed to have/add link local prefix's in the list , why are'n= t we allowed to remove them. Is there some reasoning behind this .. or is it s= imply a bug. Thanks for all the help, Preety. "What u see is the virtual perception of u'r digital self" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message