Project

General

Profile

Task #1120 » config_example.xml

Anonymous, 02/08/2014 05:17 PM

 
<?xml version="1.0" encoding="UTF-8" ?>
<config>
<!-- The process section defines settings of nfd process -->
<process>
<pidfile>/tmp/nfd.pid</pidfile>
<!-- Filename where NFD writes its PID upon startup -->
<uid>ndn</uid>
<!-- uid to change into after initialization -->
<gid>ndn</gid>
<!-- gid to change into after initialization -->
</process>

<!-- a channels section defines one or more channels -->
<channels>
<channel>
<name>unix</name>
<!-- name of channel, must be unique -->
<proto>unix</proto>
<!-- underlying protocol -->
<path>/var/run/nfd.sock</path>
<!-- (UNIX) path -->
<listen>true</listen>
<!-- whether to start listening -->
</channel>

<channel>
<name>tcp</name>
<proto>tcp</proto>
<port>6363</port>
<!-- (TCP) listen port -->
<listen>true</listen>
</channel>

<channel>
<name>udp</name>
<proto>udp</proto>
<port>6363</port>
<!-- (UDP) listen port -->
<listen>true</listen>
</channel>

<channel>
<name>udp_mcast</name>
<proto>udp</proto>
<port>56363</port>
<mcast_group>224.0.23.170</mcast_group>
<!-- (UDP) join multicast group -->
<local_ip>192.0.2.1</local_ip>
<!-- (UDP mcast) local IP to use; must belong to a local NIC -->
</channel>

<channel>
<name>ether</name>
<proto>ether</proto>
<dev>eth1</dev>
<!-- (Ethernet) local NIC -->
<wire>ndnlp</wire>
</channel>
</channels>

<!-- an authorizations section defines one or more authorized keys and their respective privileges -->
<authorizations>
<authorize>
<key>
<![CDATA[
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDUxqtALEY/RsuvBj3umatpsM84
xewkeLx9iW34f1Voqtv8Gsx2U1P6cYspmJXEvP06U9Wbne4Y+OFavtj+veRzMyxb
7qby72t7YBbPhsa6tK1ry1xrJzkd03Nv+kxW66rBATE0kQ0GUAxpvTpn+/MWM0X0
pwCHKj4aDjkeLkWOywIDAQAB
-----END PUBLIC KEY-----
]]>
</key>
<!-- PEM encoded public key, should be readable by root only -->

<!-- set of privileges granted to this public key -->
<privileges>
<privilege>fib</privilege>
<privilege>stats</privilege>
</privileges>
</authorize>
</authorizations>



</config>
(2-2/3)