libartnet
libartnet copied to clipboard
artnet_new returns empty interface list OSX 10.8/10.9
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?
It's working on Mavericks for me. What errors do you see? Are you network interfaces up?
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.
What's the result of artnet_strerror() after the call fails ? Please also paste a link to your config.h file.
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
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