March 23, 2026
2:11 p.m.
On Mon Mar 23 19:10:41 2026 +0000, Paul Gofman wrote:
Probably the opposite, IN6_IS_ADDR_LINKLOCAL includes IN6_IS_ADDR_SITELOCAL? Or, actually, neither, as far as existing macros go:
\`\`\` static inline BOOLEAN WS(IN6_IS_ADDR_LINKLOCAL) ( const IN6_ADDR \*a ) { return ((a-\>s6_bytes\[0\] == 0xfe) && ((a-\>s6_bytes\[1\] & 0xc0) == 0x80)); } static inline BOOLEAN WS(IN6_IS_ADDR_SITELOCAL) ( const IN6_ADDR \*a ) { return ((a-\>s6_bytes\[0\] == 0xfe) && ((a-\>s6_bytes\[1\] & 0xc0) == 0xc0)); } -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10432#note_133403