Hello, my name is David
Im having problems when trying to run the dtnd program on my computer. It
used to work 3 months ago, but now it doesnt works. It gaves the following
output on my computer(wlp4s0 is my wireless interface):
sudo dtnd -i wlp4s0 -c
/home/script/Documentos/git/dtnServidor/IBRDTN/ibrdtn-custom.conf
Sun Apr 15 21:48:38 2018 INFO NativeDaemon: IBR-DTN daemon 1.0.1 (build
294b543)
Sun Apr 15 21:48:38 2018 INFO Configuration: Configuration:
/home/script/Documentos/git/dtnServidor/IBRDTN/ibrdtn-custom.conf
Sun Apr 15 21:48:38 2018 INFO NativeDaemon: use logfile for output:
/var/log/ibrdtn/ibrdtn.log
Sun Apr 15 21:48:38 2018 INFO NativeDaemon: Parallel event processing
enabled using 2 processes.
Sun Apr 15 21:48:38 2018 INFO BundleCore: Local node name: dtn://script.dtn
Sun Apr 15 21:48:38 2018 INFO BundleCore: Forwarding of bundles enabled.
Sun Apr 15 21:48:38 2018 INFO SecurityKeyManager: initialized; path:
/etc/ibrdtn/bpsec
Sun Apr 15 21:48:38 2018 INFO NativeDaemon: using simple bundle storage in
/var/spool/ibrdtn/bundles
Sun Apr 15 21:48:38 2018 INFO SimpleBundleStorage: 1 Bundles restored.
Sun Apr 15 21:48:38 2018 INFO NativeDaemon: API initialized using tcp
socket: loopback:4550
Sun Apr 15 21:48:38 2018 INFO NativeDaemon: TCP ConvergenceLayer added on
wlp4s0:4556
Sun Apr 15 21:48:38 2018 INFO DiscoveryAgent: listen to [224.0.0.142]:4551
Sun Apr 15 21:48:38 2018 INFO DiscoveryAgent: listen to [ff02::142]:4551
Sun Apr 15 21:48:38 2018 INFO DiscoveryAgent: add interface wlp4s0
Sun Apr 15 21:48:43 2018 ERROR TCPConvergenceLayer: bind failed (failed to
getaddrinfo with address: [fd11:2233:4455:1:f48d:2c3:b5d5:9607]:4556
(global))
Sun Apr 15 21:48:43 2018 ERROR IPNDAgent: Join failed on wlp4s0
([2804:14d:1494:8532:b569:2e86:3664:8ca5]:4551 (global), family: 10);
failed to getaddrinfo with address:
[2804:14d:1494:8532:b569:2e86:3664:8ca5]:4551 (global)
Sun Apr 15 21:48:44 2018 ERROR IPNDAgent: Join failed on wlp4s0
([2804:14d:1494:8532:f48d:2c3:b5d5:9607]:4551 (global), family: 10); failed
to getaddrinfo with address: [2804:14d:1494:8532:f48d:2c3:b5d5:9607]:4551
(global)
Sun Apr 15 21:48:44 2018 ERROR IPNDAgent: Join failed on wlp4s0
([fd11:2233:4455:1:e0bc:ac71:648e:651e]:4551 (global), family: 10); failed
to getaddrinfo with address: [fd11:2233:4455:1:e0bc:ac71:648e:651e]:4551
(global)
Sun Apr 15 21:48:50 2018 ERROR IPNDAgent: Join failed on wlp4s0
([fd11:2233:4455:1:f48d:2c3:b5d5:9607]:4551 (global), family: 10); failed
to getaddrinfo with address: [fd11:2233:4455:1:f48d:2c3:b5d5:9607]:4551
(global)
Sun Apr 15 21:48:50 2018 ERROR IPNDAgent: Join failed on wlp4s0
([fe80::90a3:98d8:6edd:93dd%wlp4s0]:4551 (link), family: 10); failed to
getaddrinfo with address: [fe80::90a3:98d8:6edd:93dd%wlp4s0]:4551 (link)
Sun Apr 15 21:48:50 2018 INFO NativeDaemon: Using epidemic routing
extensions
Sun Apr 15 21:48:50 2018 INFO EpidemicRoutingExtension: Initializing
epidemic routing module
I guess the problems are related with multiples ipv6 addresses on the
interface wlp4s0 (3 months ago I did not had multiple ipv6 addresses). My
ifconfig output for the wlp4s0 interface:
script@script:~$ ifconfig wlp4s0
wlp4s0 Link encap:Ethernet Endereço de HW 68:14:01:a7:fd:5d
inet end.: 192.168.0.16 Bcast:192.168.0.255 Masc:255.255.255.0
endereço inet6: 2804:14d:1494:8532:b569:2e86:3664:8ca5/64
Escopo:Global
endereço inet6: fd11:2233:4455:1:f48d:2c3:b5d5:9607/64
Escopo:Global
endereço inet6: fd11:2233:4455:1:e0bc:ac71:648e:651e/64
Escopo:Global
endereço inet6: fe80::90a3:98d8:6edd:93dd/64 Escopo:Link
endereço inet6: 2804:14d:1494:8532:f48d:2c3:b5d5:9607/64
Escopo:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:20694 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:17267 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:1000
RX bytes:13073019 (13.0 MB) TX bytes:2696130 (2.6 MB)
-------------------------------------------------------------------------------------
I have a raspberry pi zero W also running dtnd, but I dont have problems
here. From the raspberry pi, I get the following output:
pi@raspberrypi:~ sudo dtnd -i wlan0 -c
/home/pi/Documents/ibrdtn-conf/novoconfpizero.conf
Sun Apr 15 21:58:09 2018 INFO NativeDaemon: IBR-DTN daemon 1.0.1 (build
e7cfb5fc)
Sun Apr 15 21:58:09 2018 INFO Configuration: Configuration:
/home/pi/Documents/ibrdtn-conf/novoconfpizero.conf
Sun Apr 15 21:58:09 2018 INFO NativeDaemon: use logfile for output:
/var/log/ibrdtn/ibrdtn.log
Sun Apr 15 21:58:09 2018 INFO BundleCore: Local node name: dtn://pizero.dtn
Sun Apr 15 21:58:09 2018 INFO BundleCore: Forwarding of bundles enabled.
Sun Apr 15 21:58:09 2018 INFO BundleCore: Non-singleton bundles are
accepted.
Sun Apr 15 21:58:09 2018 INFO NativeDaemon: using simple bundle storage in
/var/spool/ibrdtn/bundles
Sun Apr 15 21:58:09 2018 INFO SimpleBundleStorage: 1 Bundles restored.
Sun Apr 15 21:58:09 2018 INFO NativeDaemon: API initialized using tcp
socket: <loopback>:4550
Sun Apr 15 21:58:09 2018 INFO NativeDaemon: TCP ConvergenceLayer added on
wlan0:4556
Sun Apr 15 21:58:09 2018 INFO IPNDAgent: listen to [224.0.0.142]:4551
Sun Apr 15 21:58:09 2018 INFO IPNDAgent: listen to [ff02::142]:4551
Sun Apr 15 21:58:09 2018 INFO IPNDAgent: advertise on interface wlan0
Sun Apr 15 21:58:09 2018 INFO NativeDaemon: Using epidemic routing
extensions
Sun Apr 15 21:58:09 2018 INFO EpidemicRoutingExtension: Initializing
epidemic routing module
*Sun Apr 15 21:59:11 2018 WARNING TCPConnection: connection to
dtn://script.dtn failed*
*Sun Apr 15 22:03:31 2018 WARNING TCPConnection: connection to
dtn://script.dtn failed*
*Sun Apr 15 22:05:46 2018 WARNING TCPConnection: connection to
dtn://script.dtn failed*
*Sun Apr 15 22:06:48 2018 WARNING TCPConnection: connection to
dtn://script.dtn failed*
On the raspberry pi, I connected to the API and used the neighbor list
command, got the following output (dtn://script.dtn is my computer):
neighbor list
200 NEIGHBOR LIST
dtn://script.dtn
I tried the same approach on my computer, got the following output:
neighbor list
200 NEIGHBOR LIST
As you can see, it was expected to my raspberry (dtn://pizero.dtn) appears
on the list, but it did not.
May you help me?