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,
[EMAIL PROTECTED] Sunbay Software AG,
[EMAIL PROTECTED] 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message