DTN2 Tips and Tricks
The caveats/tricks you should know are:
1. Make sure you have a recent version of Berkeley DB and Tcl installed to standard locations on your system. Also make sure that you have the development versions of these packages installed so the header files are present on your system.
Alternatively, the configure script has support for using a custom-built version of these libraries (the --with-db and --with-tcl options).
2. Install tclreadline, typically by finding the appropriate package for your system. Alternatively, you can download tclreadline source and install it. This will give you access to the dtnd command line help, and in general make it easier to use/test dtn. One of the hooks for processing bundles is to specify a tcl command to run on bundles that are received. http://tclreadline.sourceforge.net
3. By default, dtnd is initialized with the conf file ./daemon/dtn.conf. This is a tcl file - where you can load the appropriate test functions, and do any node/route initializations necessary.
4. You may need to specify your LD_LIBRARY _PATH in order to run dtnd successfully:
export LD_LIBRARY_PATH=/usr/local/BerkeleyDB4.2/lib
For the dtnd options run it with the --help option:
./daemon/dtnd --help
After you first compile DTN2, you will need to initialize the database:
./daemon/dtnd --init-db
Then to clear the database and run dtn you can use the tidy option:
./daemon/dtnd -t
Read the error messages if it doesn't run successfully - in general, Mike has done a pretty good job of putting in informative enough error messages for you to be able to fix whatever configuration issues come up.