Debian Codegraph @

mingw-w64-crt/libsrc/ws2tcpip/in6_set_addr_loopback.c

raw
1 #ifndef WIN32_LEAN_AND_MEAN
2 #define WIN32_LEAN_AND_MEAN
3 #endif
4 #undef __CRT__NO_INLINE
5 #define __CRT__NO_INLINE
6 #include <winsock2.h>
7 #include <ws2tcpip.h>
8
9 void IN6_SET_ADDR_LOOPBACK(struct in6_addr *a)
10 {
11 *a = (struct in6_addr){0};
12 a->s6_bytes[15] = 1;
13 }