1 /* include/dnet_winconfig.h -- Windows configuration #defines.  It is modified
2    from the config.h generated by configure on other platforms. */
3 
4 /* Define if arpreq struct has arp_dev. */
5 #define HAVE_ARPREQ_ARP_DEV 1
6 
7 /* Define if you have the Berkeley Packet Filter. */
8 /* #undef HAVE_BSD_BPF */
9 
10 /* Define if you have the <dlfcn.h> header file. */
11 #define HAVE_DLFCN_H 1
12 
13 /* Define if you have the `err' function. */
14 #define HAVE_ERR 1
15 
16 /* Define if you have the <fcntl.h> header file. */
17 #define HAVE_FCNTL_H 1
18 
19 /* Define if you have the <hpsecurity.h> header file. */
20 /* #undef HAVE_HPSECURITY_H */
21 
22 /* Define if you have the <inttypes.h> header file. */
23 #define HAVE_INTTYPES_H 1
24 
25 /* Define if you have arp(7) ioctls. */
26 #define HAVE_IOCTL_ARP 1
27 
28 /* Define if you have the <Iphlpapi.h> header file. */
29 /* #undef HAVE_IPHLPAPI_H */
30 
31 /* Define if you have the <ip_compat.h> header file. */
32 /* #undef HAVE_IP_COMPAT_H */
33 
34 /* Define if you have the <ip_fil_compat.h> header file. */
35 /* #undef HAVE_IP_FIL_COMPAT_H */
36 
37 /* Define if you have the <ip_fil.h> header file. */
38 /* #undef HAVE_IP_FIL_H */
39 
40 /* Define if you have the `iphlpapi' library (-liphlpapi). */
41 /* #undef HAVE_LIBIPHLPAPI */
42 
43 /* Define if you have the `nm' library (-lnm). */
44 /* #undef HAVE_LIBNM */
45 
46 /* Define if you have the `nsl' library (-lnsl). */
47 /* #undef HAVE_LIBNSL */
48 
49 /* Define if you have the `resolv' library (-lresolv). */
50 /* #undef HAVE_LIBRESOLV */
51 
52 /* Define if you have the `socket' library (-lsocket). */
53 /* #undef HAVE_LIBSOCKET */
54 
55 /* Define if you have the `str' library (-lstr). */
56 /* #undef HAVE_LIBSTR */
57 
58 /* Define if you have the `ws2_32' library (-lws2_32). */
59 /* #undef HAVE_LIBWS2_32 */
60 
61 /* Define if you have the <linux/if_tun.h> header file. */
62 #define HAVE_LINUX_IF_TUN_H 1
63 
64 /* Define if you have the <linux/ip_fwchains.h> header file. */
65 /* #undef HAVE_LINUX_IP_FWCHAINS_H */
66 
67 /* Define if you have the <linux/ip_fw.h> header file. */
68 /* #undef HAVE_LINUX_IP_FW_H */
69 
70 /* Define if you have the <linux/netfilter_ipv4/ipchains_core.h> header file.
71    */
72 #define HAVE_LINUX_NETFILTER_IPV4_IPCHAINS_CORE_H 1
73 
74 /* Define if you have Linux PF_PACKET sockets. */
75 #define HAVE_LINUX_PF_PACKET 1
76 
77 /* Define if you have the Linux /proc filesystem. */
78 #define HAVE_LINUX_PROCFS 1
79 
80 /* Define if you have the <memory.h> header file. */
81 #define HAVE_MEMORY_H 1
82 
83 /* Define if you have the <netinet/in_var.h> header file. */
84 /* #undef HAVE_NETINET_IN_VAR_H */
85 
86 /* Define if you have the <netinet/ip_compat.h> header file. */
87 /* #undef HAVE_NETINET_IP_COMPAT_H */
88 
89 /* Define if you have the <netinet/ip_fil_compat.h> header file. */
90 /* #undef HAVE_NETINET_IP_FIL_COMPAT_H */
91 
92 /* Define if you have the <netinet/ip_fil.h> header file. */
93 /* #undef HAVE_NETINET_IP_FIL_H */
94 
95 /* Define if you have the <netinet/ip_fw.h> header file. */
96 /* #undef HAVE_NETINET_IP_FW_H */
97 
98 /* Define if you have the <net/bpf.h> header file. */
99 /* #undef HAVE_NET_BPF_H */
100 
101 /* Define if you have the <net/if_arp.h> header file. */
102 #define HAVE_NET_IF_ARP_H 1
103 
104 /* Define if you have the <net/if_dl.h> header file. */
105 /* #undef HAVE_NET_IF_DL_H */
106 
107 /* Define if you have the <net/if.h> header file. */
108 // #define HAVE_NET_IF_H 1
109 
110 /* Define if you have the <net/if_tun.h> header file. */
111 /* #undef HAVE_NET_IF_TUN_H */
112 
113 /* Define if you have the <net/if_var.h> header file. */
114 /* #undef HAVE_NET_IF_VAR_H */
115 
116 /* Define if you have the <net/pfilt.h> header file. */
117 /* #undef HAVE_NET_PFILT_H */
118 
119 /* Define if you have the <net/pfvar.h> header file. */
120 /* #undef HAVE_NET_PFVAR_H */
121 
122 /* Define if you have the <net/radix.h> header file. */
123 /* #undef HAVE_NET_RADIX_H */
124 
125 /* Define if you have the <net/raw.h> header file. */
126 /* #undef HAVE_NET_RAW_H */
127 
128 /* Define if you have the <net/route.h> header file. */
129 #define HAVE_NET_ROUTE_H 1
130 
131 /* Define if you have cooked raw IP sockets. */
132 /* #undef HAVE_RAWIP_COOKED */
133 
134 /* Define if <sys/kinfo.h> has getkerninfo. */
135 /* #undef HAVE_GETKERNINFO */
136 
137 /* Define if raw IP sockets require host byte ordering for ip_off, ip_len. */
138 /* #undef HAVE_RAWIP_HOST_OFFLEN */
139 
140 /* Define if <net/route.h> has rt_msghdr struct. */
141 /* #undef HAVE_ROUTE_RT_MSGHDR */
142 
143 /* Define if <netinet/in.h> has sockaddr_in6 struct. */
144 #define HAVE_SOCKADDR_IN6 1
145 
146 /* Define if sockaddr struct has sa_len. */
147 /* #undef HAVE_SOCKADDR_SA_LEN */
148 
149 /* Define if you have the <stdint.h> header file. */
150 #define HAVE_STDINT_H 1
151 
152 /* Define if you have the <stdlib.h> header file. */
153 #define HAVE_STDLIB_H 1
154 
155 /* Define if you have SNMP MIB2 STREAMS. */
156 /* #undef HAVE_STREAMS_MIB2 */
157 
158 /* Define if you have route(7) STREAMS. */
159 /* #undef HAVE_STREAMS_ROUTE */
160 
161 /* Define if you have the <strings.h> header file. */
162 #define HAVE_STRINGS_H 1
163 
164 /* Define if you have the <string.h> header file. */
165 #define HAVE_STRING_H 1
166 
167 /* Define if you have the `strlcat' function. */
168 /* #undef HAVE_STRLCAT */
169 
170 /* Define if you have the `strlcpy' function. */
171 /* #undef HAVE_STRLCPY */
172 
173 /* Define if you have the <stropts.h> header file. */
174 #define HAVE_STROPTS_H 1
175 
176 /* Define if you have the `strsep' function. */
177 #define HAVE_STRSEP 1
178 
179 /* Define if you have the <sys/bufmod.h> header file. */
180 /* #undef HAVE_SYS_BUFMOD_H */
181 
182 /* Define if you have the <sys/dlpihdr.h> header file. */
183 /* #undef HAVE_SYS_DLPIHDR_H */
184 
185 /* Define if you have the <sys/dlpi_ext.h> header file. */
186 /* #undef HAVE_SYS_DLPI_EXT_H */
187 
188 /* Define if you have the <sys/dlpi.h> header file. */
189 /* #undef HAVE_SYS_DLPI_H */
190 
191 /* Define if you have the <sys/ioctl.h> header file. */
192 #define HAVE_SYS_IOCTL_H 1
193 
194 /* Define if you have the <sys/mib.h> header file. */
195 /* #undef HAVE_SYS_MIB_H */
196 
197 /* Define if you have the <sys/ndd_var.h> header file. */
198 /* #undef HAVE_SYS_NDD_VAR_H */
199 
200 /* Define if you have the <sys/socket.h> header file. */
201 /* #undef HAVE_SYS_SOCKET_H */
202 
203 /* Define if you have the <sys/sockio.h> header file. */
204 /* #undef HAVE_SYS_SOCKIO_H */
205 
206 /* Define if you have the <sys/stat.h> header file. */
207 #define HAVE_SYS_STAT_H 1
208 
209 /* Define if you have the <sys/sysctl.h> header file. */
210 #define HAVE_SYS_SYSCTL_H 1
211 
212 /* Define if you have the <sys/time.h> header file. */
213 #define HAVE_SYS_TIME_H 1
214 
215 /* Define if you have the <sys/types.h> header file. */
216 #define HAVE_SYS_TYPES_H 1
217 
218 /* Define if you have the <unistd.h> header file. */
219 #define HAVE_UNISTD_H 1
220 
221 /* Define if you have the <winsock2.h> header file. */
222 #define HAVE_WINSOCK2_H
223 
224 /* Name of package */
225 #define PACKAGE "libdnet"
226 
227 /* Define if you have the ANSI C header files. */
228 #define STDC_HEADERS 1
229 
230 /* Version number of package */
231 #define VERSION "1.12"
232 
233 /* Define for faster code generation. */
234 #define WIN32_LEAN_AND_MEAN
235 
236 /* Define to empty if `const' does not conform to ANSI C. */
237 /* #undef const */
238 
239 /* Define as `__inline' if that's what the C compiler calls it, or to nothing
240    if it is not supported. */
241 /* #undef inline */
242 
243 /* Define to `int' if <sys/types.h> does not define. */
244 /* #undef pid_t */
245 
246 /* Define to `unsigned' if <sys/types.h> does not define. */
247 /* #undef size_t */
248 
249 /* Use MingW32's internal snprintf */
250 /* #undef snprintf */
251 
252 #include <sys/types.h>
253 
254 #ifdef HAVE_WINSOCK2_H
255 # include <winsock2.h>
256 # include <ws2tcpip.h>
257 # include <windows.h>
258 #endif
259 
260 #ifdef __svr4__
261 # define BSD_COMP	1
262 #endif
263 
264 #if defined(__osf__) && !defined(_SOCKADDR_LEN)
265 # define _SOCKADDR_LEN	1
266 #endif
267 
268 #ifndef HAVE_STRLCAT
269 int	strlcat(char *, const char *, int);
270 #endif
271 
272 #ifndef HAVE_STRLCPY
273 int	strlcpy(char *, const char *, int);
274 #endif
275 
276 #ifndef HAVE_STRSEP
277 char	*strsep(char **, const char *);
278 #endif
279 
280 #define snprintf _snprintf
281 
282 /* Without this, Windows will give us all sorts of crap about using functions
283    like strcpy() even if they are done safely */
284 #define _CRT_SECURE_NO_DEPRECATE 1
285