From owner-freebsd-net Tue May 15 7:22:33 2001 Delivered-To: freebsd-net@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id A25FE37B42C for ; Tue, 15 May 2001 07:22:24 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f4FEMDF62062; Tue, 15 May 2001 17:22:13 +0300 (EEST) (envelope-from ru) Date: Tue, 15 May 2001 17:22:13 +0300 From: Ruslan Ermilov To: vishwanath pargaonkar Cc: freebsd-net@FreeBSD.ORG Subject: Re: rt_tables Message-ID: <20010515172213.A60756@sunbay.com> Mail-Followup-To: vishwanath pargaonkar , freebsd-net@FreeBSD.ORG References: <20010515141003.9062.qmail@web5305.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010515141003.9062.qmail@web5305.mail.yahoo.com>; from vishubp@yahoo.com on Tue, May 15, 2001 at 03:10:03PM +0100 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, May 15, 2001 at 03:10:03PM +0100, vishwanath pargaonkar wrote: > Hi, > i have free bsd 4.2 stable. > my question is there is array of pointers for routing > tables. > struct radix_node_head *rt_tables[AF_MAX + 1]; > > my doubt is where is this table getting initialised. > for eg for where is address assigned ro > rt_tables[AF_INET6] = ?? > It is initialized from route.c:rtable_init(). For each known domain, the code calls the initialization function, dom_rtattach, which for AF_INET happens to be in_rmx.c:in_inithead(), and for AF_INET6 it is in6_rmx.c:in6_inithead(). Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message