1 
2 /* ******************************************************************** *
3  * defaults.h	version 0.01	1-23-09					*
4  *									*
5  *     COPYRIGHT 2008-2009 Michael Robinton <michael@bizsystems.com>	*
6  *									*
7  * This program is free software; you can redistribute it and/or modify	*
8  * it under the terms of either:					*
9  *									*
10  *  a) the GNU General Public License as published by the Free		*
11  *  Software Foundation; either version 2, or (at your option) any	*
12  *  later version, or							*
13  *									*
14  *  b) the "Artistic License" which comes with this distribution.	*
15  *									*
16  * This program is distributed in the hope that it will be useful,	*
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of	*
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See either	*
19  * the GNU General Public License or the Artistic License for more 	*
20  * details.								*
21  *									*
22  * You should have received a copy of the Artistic License with this	*
23  * distribution, in the file named "Artistic".  If not, I'll be glad 	*
24  * to provide one.							*
25  *									*
26  * You should also have received a copy of the GNU General Public 	*
27  * License along with this program in the file named "Copying". If not, *
28  * write to the 							*
29  *									*
30  *	Free Software Foundation, Inc.					*
31  *	59 Temple Place, Suite 330					*
32  *	Boston, MA  02111-1307, USA					*
33  *									*
34  * or visit their web page on the internet at:				*
35  *									*
36  *	http://www.gnu.org/copyleft/gpl.html.				*
37  * ********************************************************************	*/
38 
39 #ifndef _NI_DEFAULTS_H
40 #define _NI_DEFAULTS_H
41 
42 #include <errno.h>
43 
44 #ifdef HAVE_SYS_TYPES_H
45 # include <sys/types.h>
46 #endif
47 #ifdef HAVE_SYS_STAT_H
48 # include <sys/stat.h>
49 #endif
50 #ifdef HAVE_STDIO_H
51 #include <stdio.h>
52 #endif
53 #ifdef STDC_HEADERS
54 # include <stdlib.h>
55 # include <stddef.h>
56 #else
57 # ifdef HAVE_STDLIB_H
58 #  include <stdlib.h>
59 # endif
60 #endif
61 #ifdef HAVE_STRING_H
62 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
63 #  include <memory.h>
64 # endif
65 # include <string.h>
66 #endif
67 #ifdef HAVE_STRINGS_H
68 # include <strings.h>
69 #endif
70 #ifdef HAVE_INTTYPES_H
71 # include <inttypes.h>
72 #endif
73 #ifdef HAVE_STDINT_H
74 # include <stdint.h>
75 #endif
76 #ifdef HAVE_UNISTD_H
77 # include <unistd.h>
78 #endif
79 #ifdef HAVE_SYS_SOCKET_H
80 #include <sys/socket.h>
81 #endif
82 #ifdef HAVE_NETINET_IP_H
83 #include <netinet/ip.h>
84 #endif
85 #ifdef HAVE_PCAP
86 #include <pcap.h>
87 #endif
88 
89 
90 #ifdef HAVE_ASM_TYPES_H
91 #include <asm/types.h>
92 #endif
93 #ifdef HAVE_FEATURES_H
94 #include <features.h>
95 #endif
96 #ifdef HAVE_SYS_PARAM_H
97 #include <sys/param.h>
98 #endif
99 #ifdef HAVE_SYS_UN_H
100 #include <sys/un.h>
101 #endif
102 #ifdef HAVE_NETECONET_EC_H
103 #include <neteconet/ec.h>
104 #endif
105 #ifdef HAVE_LINUX_ATALK_H
106 #include <linux/atalk.h>
107 #endif
108 #ifdef HAVE_NETINET_IF_FDDI_H
109 #include <netinet/if_fddi.h>
110 #endif
111 #ifdef HAVE_LINUX_IF_FDDI_H
112 #include <linux/if_fddi.h>
113 #endif
114 #ifdef HAVE_LINUX_IF_TR_H
115 #include <linux/if_tr.h>
116 #endif
117 #ifdef HAVE_NET_IF_ARP_H
118 #include <net/if_arp.h>
119 #endif
120 #ifdef HAVE_LINUX_IF_ETHER_H
121 #include <linux/if_ether.h>
122 #endif
123 #ifdef HAVE_ENDIAN_H
124 #include <endian.h>
125 #endif
126 #ifdef HAVE_BYTESWAP_H
127 #include <byteswap.h>
128 #endif
129 #ifdef HAVE_ALLOCA_H
130 #include <alloca.h>
131 #endif
132 #ifdef HAVE_SYS_SOCKIO_H
133 #include <sys/sockio.h>
134 #endif
135 #ifdef HAVE_SYS_SYSCTL_H
136 #include <sys/sysctl.h>
137 #endif
138 #ifdef HAVE_SYS_TIME_H
139 #include <sys/time.h>
140 #endif
141 #ifdef HAVE_SYS_MODULE_H
142 #include <sys/module.h>
143 #endif
144 #ifdef HAVE_SYS_LINKER_H
145 #include <sys/linker.h>
146 #endif
147 #ifdef HAVE_SYS_MAC_H
148 #include <sys/mac.h>
149 #endif
150 #ifdef HAVE_NETAX25_AX25_H
151 #include <netax25/ax25.h>
152 #endif
153 #ifdef HAVE_LINUX_AX25_H
154 #include <linux/ax25.h>
155 #endif
156 #ifdef HAVE_LINUX_TYPES_H
157 #include <linux/types.h>
158 #endif
159 #ifdef HAVE_LINUX_IF_STRIP_H
160 #include <linux/if_strip.h>
161 #endif
162 #ifdef HAVE_LINUX_X25_H
163 #include <linux/x25.h>
164 #endif
165 #ifdef HAVE_LINUX_IF_ARP_H
166 #include <linux/if_arp.h>
167 #endif
168 #ifdef HAVE_SYS_IOCTL_H
169 #include <sys/ioctl.h>
170 #endif
171 #ifdef HAVE_LIBC_INTERNAL_H
172 #include <libc-internal.h>
173 #endif
174 #ifdef HAVE_SIGNAL_H
175 #include <signal.h>
176 #endif
177 #ifdef HAVE_NET_IF_H
178 #include <net/if.h>
179 #endif
180 #ifdef HAVE_NETATALK_AT_H
181 #include <netatalk/at.h>
182 #endif
183 #ifdef HAVE_NET_PFVAR_H
184 #include <net/pfvar.h>
185 #endif
186 #ifdef HAVE_NET_IF_PFSYNC_H
187 #include <net/if_pfsync.h>
188 #endif
189 #ifdef HAVE_NETPACKET_PACKET_H
190 #include <netpacket/packet.h>
191 #endif
192 #ifdef HAVE_STDBOOL_H
193 #include <stdbool.h>
194 #endif
195 #ifdef HAVE_TIME_H
196 #include <time.h>
197 #endif
198 #ifdef HAVE_NETINET_IN_H
199 #include <netinet/in.h>
200 #endif
201 #ifdef HAVE_NET_IF_VAR_H
202 #include <net/if_var.h>
203 #endif
204 #ifdef HAVE_NETINET_IN_VAR_H
205 #include <netinet/in_var.h>
206 #endif
207 #ifdef HAVE_NETIPX_IPX_H
208 #include <netipx/ipx.h>
209 #endif
210 #ifdef HAVE_NETIPX_IPX_IF_H
211 #include <netipx/ipx_if.h>
212 #endif
213 #ifdef HAVE_NET_IF_DL_H
214 #include <net/if_dl.h>
215 #endif
216 #ifdef HAVE_NET_IF_TYPES_H
217 #include <net/if_types.h>
218 #endif
219 #ifdef HAVE_NET_ROUTE_H
220 #include <net/route.h>
221 #endif
222 #ifdef HAVE_NETINET_ETHER_H
223 #include <netinet/ether.h>
224 #endif
225 #ifdef HAVE_NETINET_IF_ETHER_H
226 #include <netinet/if_ether.h>
227 #endif
228 #ifdef HAVE_LINUX_IF_SLIP_H
229 #include <linux/if_slip.h>
230 #endif
231 #ifdef HAVE_CTYPE_H
232 #include <ctype.h>
233 #endif
234 #ifdef HAVE_NETINET_IP_CARP_H
235 #include <netinet/ip_carp.h>
236 #endif
237 #ifdef HAVE_NET_IF_MEDIA_H
238 #include <net/if_media.h>
239 #endif
240 #ifdef HAVE_NET80211_IEEE80211_H
241 #include <net80211/ieee80211.h>
242 #endif
243 #ifdef HAVE_NET80211_IEEE80211_CRYPTO_H
244 #include <net80211/ieee80211_crypto.h>
245 #endif
246 #ifdef HAVE_NET80211_IEEE80211_IOCTL_H
247 #include <net80211/ieee80211_ioctl.h>
248 #endif
249 #ifdef HAVE_NET_IF_LAGG_H
250 #include <net/if_lagg.h>
251 #endif
252 #ifdef HAVE_NET_IF_VLAN_VAR_H
253 #include <net/if_vlan_var.h>
254 #endif
255 #ifdef HAVE_NET_ETHERNET_H
256 #include <net/ethernet.h>
257 #endif
258 #ifdef HAVE_IFADDRS_H
259 #include <ifaddrs.h>
260 #endif
261 #ifdef HAVE_NETDB_H
262 #include <netdb.h>
263 #endif
264 #ifdef HAVE_NETINET6_ND6_H
265 #include <netinet6/nd6.h>
266 #endif
267 #ifdef HAVE_STDARG_H
268 #include <stdarg.h>
269 #endif
270 #ifdef HAVE_NET80211_IEEE80211_FREEBSD_H
271 #include <net80211/ieee80211_freebsd.h>
272 #endif
273 #ifdef HAVE_LINUX_ROSE_H
274 #include <linux/rose.h>
275 #endif
276 #ifdef HAVE_FCNTL_H
277 #include <fcntl.h>
278 #endif
279 #ifndef HAVE_MALLOC_IN_STDLIB
280 # ifdef HAVE_MALLOC_H
281 # include <malloc.h>
282 # endif
283 #endif
284 #ifdef HAVE_ARPA_INET_H
285 #include <arpa/inet.h>
286 #endif
287 
288 /*	stuff to get the hardware address	*/
289 
290 #ifdef HAVE_SYS_DLPI_H
291 # include <sys/dlpi.h>
292 # if defined HAVE_STROPTS_H
293 #   include <stropts.h>
294 # endif
295 #endif
296 #ifdef HAVE_NET_NIT_IF_H
297 #include <net/nit_if.h>
298 #endif
299 #ifdef HAVE_NETIO_H
300 #include <netio.h>
301 #endif
302 
303 
304 #endif	/* _NI_DEFAULTS_H	*/
305