netdev
[Top] [All Lists]

Re: your mail

To: "James R. Leu" <jleu@xxxxxxxxxxxxxx>
Subject: Re: your mail
From: A S Arun <asarun@xxxxxxxxxxxxxxxxx>
Date: Fri, 28 Jul 2000 15:34:30 +0530 (IST)
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20000727124048.D12108@doit.wisc.edu>
Sender: owner-netdev@xxxxxxxxxxx
Sir,
        Thank you very much for your reply. I have some more doubts.
(1)
unsigned char tb_data[0]; 
        last line of struct fib_table in ip_fib.h

and then, 
  struct fn_zone *fz;  
  struct fn_hash *t = (struct fn_hash*)tb->tb_data; 
  for (fz = t->fn_zone_list; fz; fz = fz->fz_next)............. 
  
        in fn_hash_lookup in fib_hash.c

tb->tb_data is assigned value in only one place 
 memset(tb->tb_data, 0, sizeof(struct fn_hash));
        
        in fib_hash_init at the end of fib_hash.c

i am not able to understand how does t->fn_zone_list contain any valid
data?

(2) in route.c, there is a structure and also a inline function by name
fn_hash. 

(3) there are 2 functions fib_lookup, one in fib_rules.c and another in
ip_fib.h.




<Prev in Thread] Current Thread [Next in Thread>