Hello Quinn,many thanks for the information about using the IP_BOUND_IF.In our application software we have the same issue for the UDP broadcast as described by prashant_telangi We use an UDP broadcast message to a dedicated IP port to detect a specific device type in the network. This was working so far from MacOS 10.5 up to MacOS 10.10. With MacOS 10.11 it does no longer work.To analyze the issue I have created a small test program which I compile on MacOS 10.10 and run it on MacOS 10.11I start the test program with./testUdpBroadcast 10.0.0.88 255.255.255.255then the setsockopt for IP_BOUND_IF will not be used and if I start the test program with./testUdpBroadcast 10.0.0.88 255.255.255.255 en2then the setsockopt for IP_BOUND_IF will be used.For MacOS 10.10 both variants result in an UDP broadcast message being sent.For MacOS 10.11 both variants result in an error message sendto() failed: No route to host/* * Test program to test the UDP broadcast on MacOS 10.11. * build: * gcc -Wall testUdpBroadcast.c -o te
Topic:
App & System Services
SubTopic:
Networking
Tags: