OpenLightingProject / libartnet

An Open Source implementation of the ArtNet protocol
https://www.openlighting.org/libartnet-main/
GNU Lesser General Public License v2.1
124 stars 56 forks source link

artnet_new returns empty interface list OSX 10.8/10.9 #1

Open hautetechnique opened 10 years ago

hautetechnique commented 10 years ago

There seems to be a problem initializing the network interfaces on OS X.

The function artnet_net_init fails to find any interfaces. For now i hardcoded the addresses, which works, but is not a great solution.

Does anyone encounter the samen problem or has a solution?

nomis52 commented 10 years ago

It's working on Mavericks for me. What errors do you see? Are you network interfaces up?

abusse commented 10 years ago

I the the same problem on iOS because of this:

Two low-level networking APIs that used to return a MAC address now return the fixed value 02:00:00:00:00:00. The APIs in question are sysctl (NET_RT_IFLIST) and ioctl (SIOCGIFCONF). Developers using the value of the MAC address should migrate to identifiers such as -[UIDevice identifierForVendor]. This change affects all apps running on iOS 7

I have not investigated it completely but quick googleing showed the same changes for Mavericks. So what basically happens, when artnet_net_init iterates over the interfaces it only finds lo0.

nomis52 commented 10 years ago

What's the result of artnet_strerror() after the call fails ? Please also paste a link to your config.h file.

Skylare commented 8 years ago

I have the same issue as abusse mentioned. Whenever I'm trying to initiate artnet_node with current IP address of Wi-Fi interface (en0) on iOS, it only finds lo0 interface and init fails. Are you planning any fix for this issue?

Thanks a lot

timmb commented 7 years ago

Hi, I had this problem (on OSX 10.11) and it was because I didn't have any config.h file (I was just building the artnet source neat in my project. Including this config.h at the top of network.c seems to have fixed it