ERROR IPNDAgent: join failed on eth0; 99: setsockopt()
Hello,
I have just installed ibr-dtn on openWRT. I execute dtnd in this way dtnd -c /tmp/ibrdtn.config
but I get this ERROR ERROR IPNDAgent: join failed on eth0; 99: setsockopt()
Does anybody know why? Any comment/help is very much appreciated.
Thank you very much, Adriano
In my config file net_lan0_interface = eth0
and my network configuration
root@ALL0315N:~# ifconfig br-lan Link encap:Ethernet HWaddr 00:0F:C9:0B:34:09 inet addr:129.132.11.245 Bcast:129.132.11.255 Mask:255.255.255.192 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:977556 errors:0 dropped:202552 overruns:0 frame:0 TX packets:222313 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:158552701 (151.2 MiB) TX bytes:43248219 (41.2 MiB)
eth0 Link encap:Ethernet HWaddr 00:0F:C9:0B:34:09 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:986264 errors:0 dropped:5893 overruns:0 frame:0 TX packets:222372 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:172968447 (164.9 MiB) TX bytes:43251389 (41.2 MiB) Interrupt:4
lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:476 errors:0 dropped:0 overruns:0 frame:0 TX packets:476 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:50216 (49.0 KiB) TX bytes:50216 (49.0 KiB)
wlan0 Link encap:Ethernet HWaddr 00:0F:C9:0B:34:08 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:760419 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:32 RX bytes:0 (0.0 B) TX bytes:142658599 (136.0 MiB) ------------------------------------------------------------------------------------------------------ root@ALL0315N:~# cat /etc/config/wireless
config wifi-device 'radio0' option type 'mac80211' option macaddr '00:0f:c9:0b:34:09' option hwmode '11ng' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option noscan '1' option country 'CH' option channel '1' option htmode 'HT40+'
config wifi-device 'radio1' option type 'mac80211' option macaddr '00:0f:c9:0b:34:08' list ht_capab 'SHORT-GI-40' list ht_capab 'TX-STBC' list ht_capab 'RX-STBC1' list ht_capab 'DSSS_CCK-40' option country 'CH' option noscan '1' option channel '1'
config wifi-iface option device 'radio1' option network 'lan' option key 'MOSAIC2B' option ssid 'MOSAIC2B1' option mode 'ap' option encryption 'none' ------------------------------------------------------------- root@ALL0315N:~# cat /etc/config/network
config interface 'loopback' option ifname 'lo' option proto 'static' option ipaddr '127.0.0.1' option netmask '255.0.0.0'
config interface 'lan' option ifname 'eth0 eth1' option type 'bridge' option _orig_ifname 'eth0 eth1 radio0.network1 wlan0' option _orig_bridge 'true' option proto 'dhcp' option hostname 'drz-mosaic2b1'
Hello!
Am 15.11.2013 18:34, schrieb Adriano Galati:
I have just installed ibr-dtn on openWRT. I execute dtnd in this way dtnd -c /tmp/ibrdtn.config
Nice to see that you solved your previous question yourself.
but I get this ERROR ERROR IPNDAgent: join failed on eth0; 99: setsockopt()
Depending on your ifconfig output, I assume that this issue has its roots in the fact that your interface eth0 does not have any IP address assigned. No IP address -> no bind possible.
One solution would be to use your bridge interface (br-lan) as DTN interface instead of eth0.
Kind regards, Johannes Morgenroth
Great! Thanks Johannes! After tuning some parameters it is working!
Resuming, to make it to work I initially used dtnd-safety-wrapper.sh (which is referring to the config file in /etc/config/ibrdtn) where I added config 'network' option type tcp option interface br-lan option port 4556 to generate ibrdtn.config in /tmp
However, the field net_interfaces = lan0 in ibrdtn.config is wrong and I fixed it manually to be "lan" I cannot spot which field as been set wrongly in /etc/config/ibrdtn Why is "net_interfaces" set to "lan0"?
thank you very much, Adriano
On Mon, Nov 18, 2013 at 9:19 AM, Johannes Morgenroth < morgenroth@ibr.cs.tu-bs.de> wrote:
Hello!
Am 15.11.2013 18:34, schrieb Adriano Galati:
I have just installed ibr-dtn on openWRT.
I execute dtnd in this way dtnd -c /tmp/ibrdtn.config
Nice to see that you solved your previous question yourself.
but I get this ERROR ERROR IPNDAgent: join failed on eth0; 99: setsockopt()
Depending on your ifconfig output, I assume that this issue has its roots in the fact that your interface eth0 does not have any IP address assigned. No IP address -> no bind possible.
One solution would be to use your bridge interface (br-lan) as DTN interface instead of eth0.
Kind regards, Johannes Morgenroth -- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.
Hi again.
The "lan0" string is not wrong here. The real configuration of IBR-DTN works that it defines a set of convergence-layers by naming them. lan0 is the name in this case. Then it defines the parameters using net_<name>_... parameters. If you are using OpenWrt there exists an special way to configure the daemon using the UCI configuration file /etc/config/ibrdtn. Here you have to define a network and set the "option interface" to the interface you want to bind to.
Kind regards, Johannes Morgenroth
Am 18.11.2013 13:51, schrieb Adriano Galati:
Great! Thanks Johannes! After tuning some parameters it is working!
Resuming, to make it to work I initially used dtnd-safety-wrapper.sh (which is referring to the config file in /etc/config/ibrdtn) where I added config 'network' option type tcp option interface br-lan option port 4556 to generate ibrdtn.config in /tmp
However, the field net_interfaces = lan0 in ibrdtn.config is wrong and I fixed it manually to be "lan" I cannot spot which field as been set wrongly in /etc/config/ibrdtn Why is "net_interfaces" set to "lan0"?
thank you very much, Adriano
participants (2)
-
Adriano Galati
-
Johannes Morgenroth