Hi Johannes,

We disabled IPv6 and ran dtnd again, and now we get a different error:

root@VeniamWorks639:~# dtnd -i wlan2
Thu Jan  1 00:03:56 1970 INFO Configuration: Using default settings. Call with --help for options.
Thu Jan  1 00:03:56 1970 INFO NativeDaemon: IBR-DTN daemon 0.10.2 (build 1d89427)
Thu Jan  1 00:03:56 1970 INFO Configuration: Using default settings. Call with --help for options.
Thu Jan  1 00:03:56 1970 INFO BundleCore: Local node name: dtn://VeniamWorks639
Thu Jan  1 00:03:56 1970 INFO BundleCore: Forwarding of bundles enabled.
Thu Jan  1 00:03:56 1970 INFO NativeDaemon: using bundle storage in memory-only mode
Thu Jan  1 00:03:56 1970 WARNING DTNTPWorker: The local clock seems to be wrong. Expiration disabled.
Thu Jan  1 00:03:56 1970 INFO NativeDaemon: API initialized using tcp socket: loopback:4550
Thu Jan  1 00:03:56 1970 INFO NativeDaemon: TCP ConvergenceLayer added on wlan2:4556
Thu Jan  1 00:03:56 1970 INFO DiscoveryAgent: listen to [ff02::142]:4551
Thu Jan  1 00:03:56 1970 INFO DiscoveryAgent: listen to [224.0.0.142]:4551
Thu Jan  1 00:03:56 1970 INFO DiscoveryAgent: add interface wlan2
Thu Jan  1 00:03:56 1970 ERROR IPNDAgent: join failed on wlan2; 99: setsockopt()
Thu Jan  1 00:03:56 1970 INFO NativeDaemon: Using default routing extensions

There's some extra information I collected bellow this e-mail.
Thank you,

Romeu

******************************

root@VeniamWorks639:~# netstat -l -n -p |grep dtnd
tcp        0      0 127.0.0.1:4550          0.0.0.0:*               LISTEN      1285/dtnd
tcp        0      0 20.0.6.39:4556          0.0.0.0:*               LISTEN      1285/dtnd
netstat: /proc/net/tcp6: No such file or directory
udp        0      0 20.0.6.39:59564         0.0.0.0:*                           1285/dtnd
udp        0      0 0.0.0.0:4551            0.0.0.0:*                           1285/dtnd
netstat: /proc/net/udp6: No such file or directory
netstat: /proc/net/raw6: No such file or directory

root@VeniamWorks639:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr D4:CA:6D:AE:C6:F6 
          inet addr:192.168.6.39  Bcast:192.168.6.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20620 errors:0 dropped:3517 overruns:0 frame:0
          TX packets:338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2693781 (2.5 MiB)  TX bytes:44564 (43.5 KiB)

eth0      Link encap:Ethernet  HWaddr D4:CA:6D:AE:C6:F6 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20765 errors:0 dropped:9 overruns:0 frame:0
          TX packets:338 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3002684 (2.8 MiB)  TX bytes:44564 (43.5 KiB)
          Interrupt:4

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:896 (896.0 B)  TX bytes:896 (896.0 B)

wlan0     Link encap:Ethernet  HWaddr D4:CA:6D:AE:C6:F7 
          inet addr:40.0.6.39  Bcast:40.0.255.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan1     Link encap:Ethernet  HWaddr 30:14:4A:E9:FC:0F 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan2     Link encap:Ethernet  HWaddr 30:14:4A:E9:FC:0F 
          inet addr:20.0.6.39  Bcast:20.0.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:380 errors:0 dropped:0 overruns:0 frame:0
          TX packets:406 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:32655 (31.8 KiB)  TX bytes:41915 (40.9 KiB)


root@VeniamWorks639:~# ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br-lan state UP qlen 1000
    link/ether d4:ca:6d:ae:c6:f6 brd ff:ff:ff:ff:ff:ff
3: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
    link/ether d4:ca:6d:ae:c6:f6 brd ff:ff:ff:ff:ff:ff
    inet 192.168.6.39/24 brd 192.168.6.255 scope global br-lan
8: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
    link/ether 30:14:4a:e9:fc:0f brd ff:ff:ff:ff:ff:ff
9: wlan2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UNKNOWN qlen 1000
    link/ether 30:14:4a:e9:fc:0f brd ff:ff:ff:ff:ff:ff
    inet 20.0.6.39/24 brd 20.0.255.255 scope global wlan2
10: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN qlen 32
    link/ether d4:ca:6d:ae:c6:f7 brd ff:ff:ff:ff:ff:ff
    inet 40.0.6.39/24 brd 40.0.255.255 scope global wlan0
17: 3g-3G: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 3
    link/ppp




On Tue, Feb 4, 2014 at 11:35 AM, Johannes Morgenroth <morgenroth@ibr.cs.tu-bs.de> wrote:
Hello again,

I can reproduce the issue and this seems to be a bug. The issue is related to the IPv6 support of OpenWrt. For an unknown reason the bind fails if IPv6 is enabled. Since that work on all other supported platforms, that should work here too. A solution is to remove IPv6 support as long this bug is not fixed.

opkg remove kmod-ipv6
# then reboot the system

I will investigate the issue further and report back to the mailinglist if I found a solution.

Kind regards,
Johannes Morgenroth


Am 04.02.2014 11:53, schrieb Romeu Monteiro:
Hi Johannes!

Thank you very much for your help!
We ran dtnd again on interface wlan2, making sure there were no other instances running, but we got the same errors.
The output of the netstat command is:

root@VeniamWorks639:~# netstat -l -n -p | grep dtnd
tcp        0      0 127.0.0.1:4550          0.0.0.0:*               LISTEN      2109/dtnd
tcp        0      0 ::1:4550                :::*                    LISTEN      2109/dtnd
udp        0      0 :::4551                 :::*                                2109/dtnd

Romeu