IN6_IS_ADDR_MC_INTFACELOCAL MIA?

The IN6ISADDRMCINTFACELOCAL macro is defined in Kernel.framework/.../netinet6/in6.h

The IN6ISADDRMCINTFACELOCAL macro is not defined in /usr/include/netinet6/in6.h

Xcode 11.4.1

Question:

Which headers should be used for Network Extensions?

The ones in Kernel.framework or the userland headers?
Answered by DTS Engineer in 620722022
Well, that’s interesting. If you look at the <netinet6/in6.h> header in the Darwin open source you’ll see it replicates all of the IN6_IS_ADDR_MC_* definitions twice, with the main difference being the the use of a double underscore prefix in the user space variants (which makes sense given C’s rules for platform-specific declarations). However, it seems that IN6_IS_ADDR_MC_INTFACELOCAL was missed from the user space side. This seems like a bug to me and I encourage you to file it as such. Please post your bug number, just for the record.

In the meantime, I think it’s reasonable to just define this yourself.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
Accepted Answer
Well, that’s interesting. If you look at the <netinet6/in6.h> header in the Darwin open source you’ll see it replicates all of the IN6_IS_ADDR_MC_* definitions twice, with the main difference being the the use of a double underscore prefix in the user space variants (which makes sense given C’s rules for platform-specific declarations). However, it seems that IN6_IS_ADDR_MC_INTFACELOCAL was missed from the user space side. This seems like a bug to me and I encourage you to file it as such. Please post your bug number, just for the record.

In the meantime, I think it’s reasonable to just define this yourself.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
OK, I will file a report when the feedback server is back online.

I will also add a comment in my code to not be surprised the day the define is back in the header and this creates a conflict with the one I had already defined.

I guess your answer implies that we should use the userland frameworks.

FB8077665
IN6_IS_ADDR_MC_INTFACELOCAL MIA?
 
 
Q