aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/mingw/libsrc/ws2tcpip/in6_set_addr_loopback.c
blob: 30d06c168e61dd89dc646a0e7d633c495bfa532f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#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>

void IN6_SET_ADDR_LOOPBACK(struct in6_addr *a)
{
	*a = (struct in6_addr){0};
	a->s6_bytes[15] = 1;
}