<net/if_media.h> not exist while struct ifmediareq in <if.h>

Will the xros sdk support flags like IFM_AVALID and IFM_ACTIVE?

Will the xros sdk support flags like IFM_AVALID and IFM_ACTIVE?

I can’t predict the future, obviously, but that seems very unlikely. visionOS is a child of iOS [1] and iOS does support this sort of thing.

What are you trying to do with this info?

For context, iOS and its children put strict limits on what you can do with these very low-level networking APIs that macOS inherited from BSD. In most cases the APIs are simply not present. And in the cases where they are present, you’re likely to encounter sandbox restrictions. And even on macOS, where these APIs are present, it’s often better to use higher-level alternatives.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

[1] Well, you could argue that visionOS is a child of iPadOS, which is itself a child of iOS, but that doesn’t change this.

&lt;net/if_media.h&gt; not exist while struct ifmediareq in &lt;if.h&gt;
 
 
Q