Read and parse configuration file » History » Version 1
A K M Mahmudul Hoque, 04/17/2014 05:06 AM
| 1 | 1 | A K M Mahmudul Hoque | Read and parse configuration file |
|---|---|---|---|
| 2 | ================================= |
||
| 3 | 1. NLSR takes command line argument "-f configFileName" for configuration file |
||
| 4 | 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 | 3. All neighbors configured by ndnneighbor is added in AdjacencyList(Adl) |
||
| 10 | |||
| 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 | 6. List of configuration command: |
||
| 16 | * network /network/name |
||
| 17 | * site-prefix /site/name |
||
| 18 | * router-name /router/name |
||
| 19 | * ndnneighbor /neighbor/name connectingFace |
||
| 20 | * ndnname /name/to/be/advertised |
||
| 21 | * lsa-refresh-time seconds |
||
| 22 | * router-dead-interval seconds |
||
| 23 | * interest-retry <number> |
||
| 24 | * interest-resend-time seconds |
||
| 25 | * max-faces-per-prefix <number> |
||
| 26 | * debug <on/off> |
||
| 27 | * logdir </directory/for/logging/> |
||
| 28 | * tunnel-type <udp | tcp> |
||
| 29 | * hyperbolic-cordinate <radius> <theta> |
||
| 30 | * root-key-prefix </key/prefix> |