Go to the documentation of this file.
25 #ifndef INCL_UTIL_COMPAT_H
26 #define INCL_UTIL_COMPAT_H
42 # define AF_INET6 PF_INET6
45 #ifndef INET6_ADDRSTRLEN
46 # define INET6_ADDRSTRLEN 46
51 #ifndef IN6_IS_ADDR_V4MAPPED
53 #define IN6_IS_ADDR_V4MAPPED(a) \
54 ((*(const uint32_t *)(const void *)(&(a)->s6_addr[0]) == 0) && \
55 (*(const uint32_t *)(const void *)(&(a)->s6_addr[4]) == 0) && \
56 (*(const uint32_t *)(const void *)(&(a)->s6_addr[8]) == ntohl(0x0000ffff)))
59 #ifndef HAVE_SA_FAMILY_T
63 #ifndef HAVE_STRUCT_IN6_ADDR
73 #ifndef HAVE_STRUCT_SOCKADDR_IN6
90 #ifndef HAVE_STRUCT_SOCKADDR_STORAGE
96 #define _SS_PADSIZE (128-sizeof(sa_family_t))
103 #ifndef SSL_OP_NO_TICKET
104 #define SSL_OP_NO_TICKET 0x00004000L