Hello,


no IBR-DTN can not parse the UCI configuration syntax, so if you use it with the -c option possibly the Parser will bail out early, and default values will be used.

On open WRT (and only there), the /etc/init.d/ibrdtn script translates the luci syntax to a valid IBR-DTN configuration file, puts it into /tmp and then starts the daemon. So when using the init script, modify the config in /et/config, when you want to start ibrdtn manually use a valid IBR-DTN config (for example from the debian version or the example in the sourcecode archive  , or you can grab the one in /tmp copy it to another place and modify it)

MfG

Sebastian


Am 11.03.2013 um 20:50 schrieb Dimitrios Giotas <dimigiotas@gmail.com>:

Ok so I stumbled across a rather weird fact.

First of all, is it right to call the daemon on the openwrt with the dtnd -c /etc/config/ibrdtn command,
or is it better to just use the /etc/init.d/ibrdtn <...> ?

Anyway, I use the 1st method along with the script to resolve the issue of which conf file is loaded.
So, when I call the daemon with the -c parameter I get that the local node name is dtn://OpenWrt .
However when I see the /tmp/ibrdtn.config the local node name, as well as some other parameters
I'm currently trying out, are different.

I've tried restarting the init.d script but to no avail.
Also in the LuCi I see many /usr/sbin/dtnd -c /tmp/ibrdtn.config processes. Is that normal?

Ideas are welcome.

Regards

On Mon, Mar 11, 2013 at 3:12 PM, Sebastian Schildt <schildt@ibr.cs.tu-bs.de> wrote:

On our debian packages there is also a

/etc/init.d/ibrdtn

that can be used to start, stop or restart. However thee is no "tmeporary" confug file that is generated. Instead it diriectly uses the config in 
/etc/ibrdtn.conf or /etc/ibrdtn/ibrdtnd.conf  (I am not usre, depending on version, we changd that osmetime. When IBR-DTN is running you can use ps -ax to check, with which config is has been loaded) 


Sebastian


Am 10.03.2013 um 23:03 schrieb Dimitrios Giotas <dimigiotas@gmail.com>:

One last question regarding the matter.Just out of curiosity,
is there something similar for a daemon running on a PC?
I mean the restart and the tmp config file.

Thank you,

Regards

On Thu, Mar 7, 2013 at 2:45 PM, Dimitrios Giotas <dimigiotas@gmail.com> wrote:
Many thanks Sebastian. The restart magic solved the problems altogether. Awesome.


On Thu, Mar 7, 2013 at 1:46 PM, Sebastian Schildt <schildt@ibr.cs.tu-bs.de> wrote:

Just a blind guess: For the OpenWRT uci magic to work you need to start ibrdtn with the supplied start script,i.e.

/etc/init.d/ibrdtn restart

this will convert the uci configuration to a ibrdtn configfile in /tmp and then start the daemon

MfG

Sebastian


Am 07.03.2013 um 11:53 schrieb Dimitrios Giotas <dimigiotas@gmail.com>:

Hello,


I am having some troubles with my router which is too running openwrt.
When I run the daemon with a configuration file I don't get anything in the /tmp/ibrdtn.conf
It doesn't exist. What might be the cause of that?
I have a few more issues as well, which I will post on future mails.
Thank you.

On Wed, Mar 6, 2013 at 4:45 PM, Sebastian Schildt <schildt@ibr.cs.tu-bs.de> wrote:


Regarding OpenWRT the "uci" systemis used for configuration, You can find that configuration file in /etc/config . This will be converted to a config file in ibrdtn syntax when the dameon is started. So if you are unsure, you can check /tmp/ibrdtn.config  while the daemon is running to see which configuration is really used by an OpenWRT node.

The DHT module allows to look up EIDs of other DTN nodes, if they are also suing DHT and have a direct internet connection. See this paper for details:

Schildt, Sebastian, Lorentzen, Till, Morgenroth, Johannes, Pöttner, Wolf-Bastian and Wolf, Lars: Free-riding the BitTorrent DHT to improve DTN connectivity, in Proceedings of the seventh ACM international workshop on Challenged networks, CHANTS '12, New York, NY, USA, Seite 9-16, ACM, 2012



Sebastian

Am 06.03.2013 um 13:26 schrieb Francisco Cuesta <ndarkness@gmail.com>:

Hello,

I'm struggling with a weird fact, I can not ping from one dtn node(C) to another dtn node (A), and I cannot understand completely why. I have set the right clocks and the configuration but first I have to ping (dtnping) from A to C in order that C can ping A, if I start directly pinging from C to A the nodes cannot see each other. Indeed, looking at the log of C there aren't other dtn nodes present... The discovery_announce are set on C but I don't know how to check whether it's enabled on A (this node uses openwrt). Any hint of what's going on?

Furthermore, I would like to know the functionality of DHT package, what is it used for?

Thanks in advance,

Ragards!
--
!! This message is brought to you via the `ibr-dtn' mailing list.
!! Please do not reply to this message to unsubscribe. To unsubscribe or adjust
!! your settings, send a mail message to <ibr-dtn-request@ibr.cs.tu-bs.de>
!! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.


--
!! This message is brought to you via the `ibr-dtn' mailing list.
!! Please do not reply to this message to unsubscribe. To unsubscribe or adjust
!! your settings, send a mail message to <ibr-dtn-request@ibr.cs.tu-bs.de>
!! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.