nativity/lib/libc/mingw/libsrc/ws2tcpip/in6_is_addr_linklocal.c
David Gonzalez Martin 38011a233c Integrate libs
2024-03-02 12:58:12 -06:00

14 lines
289 B
C

#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#undef __CRT__NO_INLINE
#define __CRT__NO_INLINE
#include <winsock2.h>
#include <ws2tcpip.h>
int IN6_IS_ADDR_LINKLOCAL(const struct in6_addr *a)
{
return ((a->s6_bytes[0] == 0xfe) &&
((a->s6_bytes[1] & 0xc0) == 0x80));
}