Project

General

Profile

Read and parse configuration file » History » Version 2

A K M Mahmudul Hoque, 04/17/2014 05:08 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 2 A K M Mahmudul Hoque
17 1 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
* interest-retry <number>
25
* interest-resend-time seconds
26
* 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>