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