Read and parse configuration file » History » Version 8
A K M Mahmudul Hoque, 05/05/2014 07:50 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 | 2 | A K M Mahmudul Hoque | |
| 16 | 6 | A K M Mahmudul Hoque | |
| 17 | 8 | A K M Mahmudul Hoque | ### [[Configuration File Format]] |