Hi Johannes,

I was able to make dtn work, but just if I run the deamon directly from the command line in my openWRT routers, if I use the script located at /etc/init.d/ibrdtn it does not work and I cannot understand the reason... I have two openwrt router with ATTITUDE ADJUSTMENT (Attitude Adjustment, r38621) as I commented in my previous posts

Why might this being happening?

So if I do:

root@OpenWrt20:~# dtnd -i wlan0 -c /tmp/ibrdtn -d 30 -v
Fri Feb 21 09:43:49 2014 INFO Configuration: Configuration: /tmp/ibrdtn
Fri Feb 21 09:43:49 2014 INFO NativeDaemon: IBR-DTN daemon 0.10.2 (build 1d89427)
Fri Feb 21 09:43:49 2014 INFO Configuration: Configuration: /tmp/ibrdtn
Fri Feb 21 09:43:49 2014 INFO NativeDaemon: debug level set to 30
Fri Feb 21 09:43:49 2014 INFO BundleCore: Local node name: dtn://OpenWrt20
Fri Feb 21 09:43:49 2014 INFO BundleCore: Forwarding of bundles enabled.
Fri Feb 21 09:43:49 2014 DEBUG.5 NativeDaemon: runlevel 1 reached
Fri Feb 21 09:43:49 2014 INFO NativeDaemon: using bundle storage in memory-only mode
Fri Feb 21 09:43:49 2014 DEBUG.5 NativeDaemon: runlevel 2 reached
Fri Feb 21 09:43:49 2014 DEBUG.5 NativeDaemon: runlevel 3 reached
Fri Feb 21 09:43:49 2014 DEBUG.25 Clock: new clock rating is 1
Fri Feb 21 09:43:49 2014 INFO NativeDaemon: API initialized using tcp socket: loopback:4550
Fri Feb 21 09:43:49 2014 DEBUG.5 NativeDaemon: runlevel 4 reached
Fri Feb 21 09:43:49 2014 DEBUG.25 TCPConvergenceLayer: bound to wlan0
Fri Feb 21 09:43:49 2014 INFO NativeDaemon: TCP ConvergenceLayer added on wlan0:4556
Fri Feb 21 09:43:49 2014 INFO DiscoveryAgent: listen to [ff02::142]:4551
Fri Feb 21 09:43:49 2014 INFO DiscoveryAgent: listen to [224.0.0.142]:4551
Fri Feb 21 09:43:49 2014 INFO DiscoveryAgent: add interface wlan0
Fri Feb 21 09:43:49 2014 ERROR IPNDAgent: join failed on wlan0; 99: setsockopt()
Fri Feb 21 09:43:49 2014 DEBUG.5 NativeDaemon: runlevel 5 reached
Fri Feb 21 09:43:49 2014 INFO NativeDaemon: Using default routing extensions
Fri Feb 21 09:43:49 2014 DEBUG.5 NativeDaemon: runlevel 6 reached
Fri Feb 21 09:43:53 2014 DEBUG.5 StaticRoutingExtension: processing task SearchNextBundleTask: dtn://OpenWrt30
Fri Feb 21 09:43:53 2014 DEBUG.5 NeighborRoutingExtension: processing task SearchNextBundleTask: dtn://OpenWrt30
Fri Feb 21 09:43:53 2014 DEBUG.10 NeighborRoutingExtension: task SearchNextBundleTask: dtn://OpenWrt30 aborted: No bundle match the specified criteria.
Fri Feb 21 09:43:53 2014 NOTICE NodeEvent: Node dtn://OpenWrt30 available
root@OpenWrt20:~# cat /tmp/ibrdtn.config
# -- DO NOT EDIT THIS FILE --
# automatic generated configuration file for IBR-DTN daemon
#
routing = epidemic
routing_forwarding = yes
blob_path = /tmp/ibrdtn/blobs
storage_path = /tmp/ibrdtn/bundles
storage = simple
discovery_address = 192.168.255.255
discovery_timeout = 10
discovery_crosslayer = yes
dht_enabled = no
dht_port = 9999
dht_bootstrapping = yes
dht_enable_ipv6 = no
dht_ignore_neighbour_informations = yes
dht_allow_neighbours_to_announce_me = no
dht_allow_neighbour_announcement = no
net_lan0_type = tcp
net_lan0_interface = wlan0
net_lan0_port = 4556
net_interfaces = lan0


root@OpenWrt30:~/packages/to do# dtnd -i wlan0 -c /tmp/ibrdtn -d 30 -v
Fri Feb 21 09:43:52 2014 INFO Configuration: Configuration: /tmp/ibrdtn
Fri Feb 21 09:43:52 2014 INFO NativeDaemon: IBR-DTN daemon 0.10.2 (build 1d89427)
Fri Feb 21 09:43:52 2014 INFO Configuration: Configuration: /tmp/ibrdtn
Fri Feb 21 09:43:52 2014 INFO NativeDaemon: debug level set to 30
Fri Feb 21 09:43:52 2014 INFO BundleCore: Local node name: dtn://OpenWrt30
Fri Feb 21 09:43:52 2014 INFO BundleCore: Forwarding of bundles enabled.
Fri Feb 21 09:43:52 2014 DEBUG.5 NativeDaemon: runlevel 1 reached
Fri Feb 21 09:43:52 2014 INFO NativeDaemon: using bundle storage in memory-only mode
Fri Feb 21 09:43:52 2014 DEBUG.5 NativeDaemon: runlevel 2 reached
Fri Feb 21 09:43:52 2014 DEBUG.5 NativeDaemon: runlevel 3 reached
Fri Feb 21 09:43:52 2014 DEBUG.25 Clock: new clock rating is 1
Fri Feb 21 09:43:52 2014 INFO NativeDaemon: API initialized using tcp socket: loopback:4550
Fri Feb 21 09:43:52 2014 DEBUG.5 NativeDaemon: runlevel 4 reached
Fri Feb 21 09:43:52 2014 DEBUG.25 TCPConvergenceLayer: bound to wlan0
Fri Feb 21 09:43:52 2014 INFO NativeDaemon: TCP ConvergenceLayer added on wlan0:4556
Fri Feb 21 09:43:52 2014 INFO DiscoveryAgent: listen to [ff02::142]:4551
Fri Feb 21 09:43:52 2014 INFO DiscoveryAgent: listen to [224.0.0.142]:4551
Fri Feb 21 09:43:52 2014 INFO DiscoveryAgent: add interface wlan0
Fri Feb 21 09:43:52 2014 ERROR IPNDAgent: join failed on wlan0; 99: setsockopt()
Fri Feb 21 09:43:52 2014 DEBUG.5 NativeDaemon: runlevel 5 reached
Fri Feb 21 09:43:52 2014 INFO NativeDaemon: Using default routing extensions
Fri Feb 21 09:43:52 2014 DEBUG.5 NativeDaemon: runlevel 6 reached
Fri Feb 21 09:43:52 2014 DEBUG.5 NeighborRoutingExtension: processing task SearchNextBundleTask: dtn://OpenWrt20
Fri Feb 21 09:43:52 2014 DEBUG.10 NeighborRoutingExtension: task SearchNextBundleTask: dtn://OpenWrt20 aborted: No bundle match the specified criteria.
Fri Feb 21 09:43:52 2014 DEBUG.5 StaticRoutingExtension: processing task SearchNextBundleTask: dtn://OpenWrt20
Fri Feb 21 09:43:52 2014 NOTICE NodeEvent: Node dtn://OpenWrt20 available
root@OpenWrt30:~/packages/to do# cat /tmp/ibrdtn.config
# -- DO NOT EDIT THIS FILE --
# automatic generated configuration file for IBR-DTN daemon
#
routing = epidemic
routing_forwarding = yes
blob_path = /tmp/ibrdtn/blobs
storage_path = /tmp/ibrdtn/bundles
storage = simple
discovery_address = 192.168.255.255
discovery_timeout = 10
discovery_crosslayer = yes
dht_enabled = no
dht_port = 9999
dht_bootstrapping = yes
dht_enable_ipv6 = no
dht_ignore_neighbour_informations = yes
dht_allow_neighbours_to_announce_me = no
dht_allow_neighbour_announcement = no
net_lan0_type = tcp
net_lan0_interface = wlan0
net_lan0_port = 4556
net_interfaces = lan0



2014-02-18 15:38 GMT+01:00 Francisco Cuesta <ndarkness@gmail.com>:


---------- Forwarded message ----------
From: Francisco Cuesta <ndarkness@gmail.com>
Date: 2014-02-18 14:20 GMT+01:00
Subject: Re: [ibr-dtn] Error while bindin IBRDTN to my ethernet interface
To: Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>


Hello Johannes,

The daemon seems to be running, as it can be seen below

root@OpenWrt:~# ps
13811 root     52368 S    /usr/sbin/dtnd -c /tmp/ibrdtn.config

The error persists, but as you said I will ignore it

root@OpenWrt:~# cat /tmp/ibrdtn.err
Sat Sep 10 21:46:54 2011 ERROR IPNDAgent: join failed on wlan0; 22: setsockopt()

the list of packages that I have installed of IP

root@OpenWrt:~# opkg list | grep ip
ip - 3.3.0-1
iptables - 1.4.10-5
kmod-ipip - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-iptunnel4 - 3.3.8-1
libip4tc - 1.4.10-5
libip6tc - 1.4.10-5
luci-lib-ipkg - 0.11+svn9934-1





2014-02-17 15:09 GMT+01:00 Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de>:

Am 17.02.2014 15:03, schrieb Francisco Cuesta:
>
> Reading the mailing-list I found this post of yours
> https://mail.ibr.cs.tu-bs.de/pipermail/ibr-dtn/2014-February/000594.html
> , there you were telling the fact that OpenWRT has some flaw with the
> IPv6 get() function, how did you check this out? And what's more, is
> there any available solution or patch to be applicable? I ask it since I
> am suffering the same kind of error I was trying to figure it out; just
> mention that I don't have IPv6 package installed on my device and I do
> have the libnl-2.0 one.

If the IPv6 module is not loaded, you can just ignore this error. Please
test if the daemon is working even with the error.

Kind regards,
Johannes

--
Johannes Morgenroth     Institut fuer Betriebssysteme und Rechnerverbund
Tel.: +49-531-391-3249                           Muehlenpfordtstrasse 23
Fax.: +49-531-391-5936      TU Braunschweig         D-38106 Braunschweig