Just found it.

At /usr/share/ibrdtn/build-config.sh it's necessary to add a line next to the discovery parameters declaration.

I just added: add_param $CONFFILE "ibrdtn.discovery.version" "discovery_version"

And in the /etc/config/ibrdtn I added "option version 0" at discovery section.

I think it's interesting to add this config. option as default in future releases of ibrdtn for openwrt.

On Thu, Nov 24, 2011 at 1:40 PM, Daniel Costa <amazondani@gmail.com> wrote:
Thank You Bastian for the Help!

My last question is how I can write the option discovery_version = 0 in openwrt's config file style?

Thanks,

Daniel.


On Thu, Nov 24, 2011 at 4:27 AM, Wolf-Bastian Pöttner <poettner@ibr.cs.tu-bs.de> wrote:
Hi!

> I'm trying to make a DTN2 and a IBR-DTN nodes discover each other automatically but I'm having a hard time. Does the discovery of IBR-DTN nodes only work with other IBR-DTN nodes? If not so, can some one provide an example of configuration?

In fact, IBR-DTN supports the DTN2 discovery format. However, IBR-DTN by default uses discoveries compliant to the the IP-ND internet draft.

For DTN2 and IBR-DTN to discover each other, you should add the following lines to the respective configuration files:

IBR-DTN:
 discovery_version = 0

DTN2:
 discovery add discovery_auto ip port=4551 addr=10.42.255.255
 discovery announce tcp_announce_cl discovery_auto tcp interval=1

Whereas the "addr" should be the broadcast address of the respective network interface.


Bastian

Am 23.11.2011 um 21:06 schrieb Daniel Costa:
--
Wolf-Bastian Pöttner      Institut für Betriebssysteme & Rechnerverbund
Tel.: +49-531-391-3265                           Mühlenpfordtstrasse 23
Fax.: +49-531-391-5936      TU Braunschweig        D-38106 Braunschweig




--
------------------------------------------------------------
Daniel da Costa Bittencourt
Bacharel em Ciência da Computação
dcb@dcc.ufam.edu.br
------------------------------------------------------------



--
------------------------------------------------------------
Daniel da Costa Bittencourt
Bacharel em Ciência da Computação
dcb@dcc.ufam.edu.br
------------------------------------------------------------