Read and parse configuration file » History » Version 7
  A K M Mahmudul Hoque, 04/28/2014 07:59 AM 
  
| 1 | 1 | A K M Mahmudul Hoque | Read and parse configuration file  | 
|---|---|---|---|
| 2 | =================================  | 
||
| 3 | 4 | A K M Mahmudul Hoque | 1. NLSR takes command line argument "-f configFileName" for configuration file.  | 
| 4 | 1 | A K M Mahmudul Hoque | If command line argument is not provided look into current directory for nlsr.conf  | 
| 5 | |||
| 6 | 2. If file is not found nlsr exits. Else nlsr reads the configuration file  | 
||
| 7 | one by one line and process. ! or # is treated as comment characters.  | 
||
| 8 | |||
| 9 | 5 | A K M Mahmudul Hoque | 3. All neighbors configured by ndnneighbor is added in AdjacencyList(Adl) with status "inactive"-0  | 
| 10 | 1 | A K M Mahmudul Hoque | |
| 11 | 4. All name to be advertised by ndnname is added in NamePrefixList (Npl)  | 
||
| 12 | |||
| 13 | 5. All other configuration parameter is stored in ConfParameter  | 
||
| 14 | |||
| 15 | 4 | A K M Mahmudul Hoque | ### List of configuration command:  | 
| 16 | 2 | A K M Mahmudul Hoque | |
| 17 | 3 | A K M Mahmudul Hoque | - network /network/name  | 
| 18 | - site-prefix /site/name  | 
||
| 19 | - router-name /router/name  | 
||
| 20 | - ndnneighbor /neighbor/name connectingFace  | 
||
| 21 | - ndnname /name/to/be/advertised  | 
||
| 22 | - lsa-refresh-time seconds  | 
||
| 23 | - router-dead-interval seconds  | 
||
| 24 | 6 | A K M Mahmudul Hoque | - interest-retry \<number\>  | 
| 25 | 3 | A K M Mahmudul Hoque | - interest-resend-time seconds  | 
| 26 | 6 | A K M Mahmudul Hoque | - max-faces-per-prefix \<number\>  | 
| 27 | - debug \<on/off\>  | 
||
| 28 | - logdir \</directory/for/logging/\>  | 
||
| 29 | - tunnel-type \<udp | tcp\>  | 
||
| 30 | - hyperbolic-cordinate \<radius\> \<theta\>  | 
||
| 31 | - root-key-prefix \</key/prefix\>  | 
||
| 32 | 7 | A K M Mahmudul Hoque | |
| 33 | |||
| 34 | ### [[Sample Configuration File]]  |