Re: [mpls-linux-general] Question on data structures used in MPLS Patch
Status: Beta
Brought to you by:
jleu
From: James R. L. <jl...@mi...> - 2001-08-06 20:44:18
|
Hello, Please don't take this the wrong way, but do you know how to use 'grep'? cd /usr/src/linux/net/mpls grep -l mii_tree *.[ch] mpls_in_info.c mpls_init.c mpls_input.c mpls_proc.c After looking in each the files you'll find it's defined in mpls_init.c mpls_init(). On Wed, Aug 01, 2001 at 06:14:50PM +0530, Pradeep wrote: > In the file mpls_init.c - there are two extern variables used namely > mii_tree(Of type struct mpls_in_info_tree) and moi_tree (Of Type struct > mpls_out_info_tree ). > > Can anyone please tell me where are these 2 > variables mii_tree and moi_tree declared?? > > Also, I am not able to find the definition of the > structures struct mpls_in_info_tree and struct mpls_out_info_tree. Can > anyone please tell me in which file is the definition of these 2 > structures present??? To find structure definitions you'd need to look in header files. So what I would do is: cd /usr/src/linux find . -name '*.h' -print | xargs grep -l 'struct mpls_in_info_tree' ./include/net/mpls.h Again, I'm not trying to be mean, but you atleast have to try a little before mailing the list. Jim -- James R. Leu |