Hi all-

I was debugging an issue earlier today, and discovered a fix for an
issue that many others will likely run into.  It seems that on our
current v0.90 release this issue will show up (though it isn't a bug in
the stack) with certain USB Ethernet adapters.  I would like to see if
there is a good 'known problems/solutions' wiki or readme for this
information to be entered into?

With this issue, the first call to the stack via OCPlatform will result
in an OC::InitializeException.  If the stack is built in Debug Mode,
one of the last logged messages you would have seen will say:
"setsockopt API for IP_ADD_MEMBERSHIP failed with errno No such device".

This is caused by said ethernet adapter not correctly being configured
for use on multicast.  The fix is to simply enter the following (where
eth0 is the name of the ethernet interface in use) on a command line:

sudo route add -net 224.0.0.0 netmask 224.0.0.0 eth0


Thanks!
-Erich

Reply via email to