Mercurial > dropbear
comparison fake-rfc2553.h @ 316:dc6173e09ff7 ucc-axis-hack
smaller yet again
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 28 Mar 2006 16:04:11 +0000 |
parents | 740e782679be |
children |
comparison
equal
deleted
inserted
replaced
314:827f87dfbc22 | 316:dc6173e09ff7 |
---|---|
62 (((u_int32_t *)(a))[0] == 0 && ((u_int32_t *)(a))[1] == 0 && \ | 62 (((u_int32_t *)(a))[0] == 0 && ((u_int32_t *)(a))[1] == 0 && \ |
63 ((u_int32_t *)(a))[2] == 0 && ((u_int32_t *)(a))[3] == htonl(1)) | 63 ((u_int32_t *)(a))[2] == 0 && ((u_int32_t *)(a))[3] == htonl(1)) |
64 #endif /* !IN6_IS_ADDR_LOOPBACK */ | 64 #endif /* !IN6_IS_ADDR_LOOPBACK */ |
65 | 65 |
66 #ifndef HAVE_STRUCT_IN6_ADDR | 66 #ifndef HAVE_STRUCT_IN6_ADDR |
67 // struct in6_addr { | 67 struct in6_addr { |
68 // u_int8_t s6_addr[16]; | 68 u_int8_t s6_addr[16]; |
69 // }; | 69 }; |
70 #endif /* !HAVE_STRUCT_IN6_ADDR */ | 70 #endif /* !HAVE_STRUCT_IN6_ADDR */ |
71 | 71 |
72 // #ifndef HAVE_STRUCT_SOCKADDR_IN6 | 72 #ifndef HAVE_STRUCT_SOCKADDR_IN6 |
73 // struct sockaddr_in6 { | 73 struct sockaddr_in6 { |
74 // unsigned short sin6_family; | 74 unsigned short sin6_family; |
75 // u_int16_t sin6_port; | 75 u_int16_t sin6_port; |
76 // u_int32_t sin6_flowinfo; | 76 u_int32_t sin6_flowinfo; |
77 // struct in6_addr sin6_addr; | 77 struct in6_addr sin6_addr; |
78 // }; | 78 }; |
79 // #endif /* !HAVE_STRUCT_SOCKADDR_IN6 */ | 79 #endif /* !HAVE_STRUCT_SOCKADDR_IN6 */ |
80 | 80 |
81 #ifndef AF_INET6 | 81 #ifndef AF_INET6 |
82 /* Define it to something that should never appear */ | 82 /* Define it to something that should never appear */ |
83 #define AF_INET6 AF_MAX | 83 #define AF_INET6 AF_MAX |
84 #endif | 84 #endif |
118 # define EAI_NODATA 1 | 118 # define EAI_NODATA 1 |
119 # define EAI_MEMORY 2 | 119 # define EAI_MEMORY 2 |
120 # define EAI_NONAME 3 | 120 # define EAI_NONAME 3 |
121 #endif | 121 #endif |
122 | 122 |
123 // #ifndef HAVE_STRUCT_ADDRINFO | 123 #ifndef HAVE_STRUCT_ADDRINFO |
124 // struct addrinfo { | 124 struct addrinfo { |
125 // int ai_flags; /* AI_PASSIVE, AI_CANONNAME */ | 125 int ai_flags; /* AI_PASSIVE, AI_CANONNAME */ |
126 // int ai_family; /* PF_xxx */ | 126 int ai_family; /* PF_xxx */ |
127 // int ai_socktype; /* SOCK_xxx */ | 127 int ai_socktype; /* SOCK_xxx */ |
128 // int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ | 128 int ai_protocol; /* 0 or IPPROTO_xxx for IPv4 and IPv6 */ |
129 // size_t ai_addrlen; /* length of ai_addr */ | 129 size_t ai_addrlen; /* length of ai_addr */ |
130 // char *ai_canonname; /* canonical name for hostname */ | 130 char *ai_canonname; /* canonical name for hostname */ |
131 // struct sockaddr *ai_addr; /* binary address */ | 131 struct sockaddr *ai_addr; /* binary address */ |
132 // struct addrinfo *ai_next; /* next structure in linked list */ | 132 struct addrinfo *ai_next; /* next structure in linked list */ |
133 // }; | 133 }; |
134 // #endif /* !HAVE_STRUCT_ADDRINFO */ | 134 #endif /* !HAVE_STRUCT_ADDRINFO */ |
135 | 135 |
136 #ifndef HAVE_GETADDRINFO | 136 #ifndef HAVE_GETADDRINFO |
137 #ifdef getaddrinfo | 137 #ifdef getaddrinfo |
138 # undef getaddrinfo | 138 # undef getaddrinfo |
139 #endif | 139 #endif |