From owner-freebsd-net Thu Jul 26 6:54:29 2001 Delivered-To: freebsd-net@freebsd.org Received: from mgo.iij.ad.jp (mgo.iij.ad.jp [202.232.15.6]) by hub.freebsd.org (Postfix) with ESMTP id 05F3E37B407 for ; Thu, 26 Jul 2001 06:54:26 -0700 (PDT) (envelope-from keiichi@iij.ad.jp) Received: from ns.iij.ad.jp (ns.iij.ad.jp [192.168.2.8]) by mgo.iij.ad.jp (8.8.8/MGO1.0) with ESMTP id WAA22056 for ; Thu, 26 Jul 2001 22:54:24 +0900 (JST) Received: from keiichi00.osaka.iij.ad.jp (keiichi00.osaka.iij.ad.jp [192.168.65.65]) by ns.iij.ad.jp (8.8.5/3.5Wpl7) with ESMTP id WAA19746 for ; Thu, 26 Jul 2001 22:54:23 +0900 (JST) Date: Thu, 26 Jul 2001 22:54:46 +0900 Message-ID: <87r8v3ztg9.wl@keiichi00.osaka.iij.ad.jp> From: Keiichi SHIMA To: freebsd-net@FreeBSD.ORG Subject: Re: prefixes from the rr_prefix structure. In-Reply-To: <418EEE1F.179D1A54.9513E96F@netscape.net> References: <418EEE1F.179D1A54.9513E96F@netscape.net> User-Agent: Wanderlust/2.4.1 (Stand By Me) SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.3 MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Internet Initiative Japan Inc. MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII 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, raviprasad20@netscape.net wrote: > > I gave a prefix . The prefix was > fec0:1111:2222::. > Then i tried to print the prefix from the ifprefix > structure in the rr_prefix structure. It was some thing like this > > 00:00:00:00:00:00:fe:c0:11:11:22:22:00:00:00:00. > > Kindly mail me why zeros are stored at the start? > > Are there any other better way of accessing the prefixes than from > the ifprefix structure. struct rr_prefix is an old style of prefix management structure. I think this struct will disappear in the near future (probably at next KAME merge). You had better to use sysctl(3) to get the prefix lists. The souce code of ndp(8) will help you. At least, ndp(8) of freebsd4-stable uses sysctl(3) to get prefix information. Best regards, --- Keiichi SHIMA Internet Initiative Japan Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message