Project

General

Profile

Read and parse configuration file » History » Revision 8

Revision 7 (A K M Mahmudul Hoque, 04/28/2014 07:59 AM) → Revision 8/9 (A K M Mahmudul Hoque, 05/05/2014 07:50 AM)

Read and parse configuration file 
 ================================= 
 1. NLSR takes command line argument "-f configFileName" for configuration file. 
 If command line argument is not provided look into current directory for nlsr.conf 

 2. If file is not found nlsr exits. Else nlsr reads the configuration file  
 one by one line and process. ! or # is treated as comment characters. 

 3. All neighbors configured by ndnneighbor is added in AdjacencyList(Adl) with status "inactive"-0 

 4. All name to be advertised by ndnname is added in NamePrefixList (Npl) 

 5. All other configuration parameter is stored in ConfParameter 



 

 ### [[Configuration File Format]] List of configuration command: 

 - network /network/name 
 - site-prefix /site/name 
 - router-name /router/name 
 - ndnneighbor /neighbor/name connectingFace 
 - ndnname /name/to/be/advertised 
 - lsa-refresh-time seconds 
 - router-dead-interval seconds 
 - interest-retry \<number\> 
 - interest-resend-time seconds 
 - max-faces-per-prefix \<number\> 
 - debug \<on/off\> 
 - logdir \</directory/for/logging/\> 
 - tunnel-type \<udp | tcp\> 
 - hyperbolic-cordinate \<radius\> \<theta\> 
 - root-key-prefix \</key/prefix\> 


 ### [[Sample Configuration File]]