Handle unicast packets larger than PMTU in switch mode.
[oweals/tinc.git] / have.h
1 /*
2     have.h -- include headers which are known to exist
3     Copyright (C) 1998-2005 Ivo Timmermans
4                   2003-2006 Guus Sliepen <guus@tinc-vpn.org>
5
6     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with this program; if not, write to the Free Software
18     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19 */
20
21 #ifndef __TINC_HAVE_H__
22 #define __TINC_HAVE_H__
23
24 #include <stdio.h>
25 #include <stdlib.h>
26 #include <stdarg.h>
27 #include <string.h>
28 #include <ctype.h>
29 #include <signal.h>
30 #include <errno.h>
31 #include <fcntl.h>
32 #include <unistd.h>
33
34 #ifdef HAVE_STDBOOL_H
35 #include <stdbool.h>
36 #endif
37
38 #ifdef HAVE_TERMIOS_H
39 #include <termios.h>
40 #endif
41
42 #ifdef HAVE_INTTYPES_H
43 #include <inttypes.h>
44 #endif
45
46 #ifdef HAVE_ALLOCA_H
47 #include <alloca.h>
48 #endif
49
50 /* Include system specific headers */
51
52 #ifdef HAVE_SYSLOG_H
53 #include <syslog.h>
54 #endif
55
56 #ifdef HAVE_SYS_TIME_H
57 #include <sys/time.h>
58 #endif
59
60 #ifdef HAVE_SYS_TYPES_H
61 #include <sys/types.h>
62 #endif
63
64 #ifdef HAVE_SYS_STAT_H
65 #include <sys/stat.h>
66 #endif
67
68 #ifdef HAVE_SYS_FILE_H
69 #include <sys/file.h>
70 #endif
71
72 #ifdef HAVE_SYS_WAIT_H
73 #include <sys/wait.h>
74 #endif
75
76 #ifdef HAVE_SYS_IOCTL_H
77 #include <sys/ioctl.h>
78 #endif
79
80 #ifdef HAVE_SYS_PARAM_H
81 #include <sys/param.h>
82 #endif
83
84 #ifdef HAVE_SYS_UIO_H
85 #include <sys/uio.h>
86 #endif
87
88 /* SunOS really wants sys/socket.h BEFORE net/if.h,
89    and FreeBSD wants these lines below the rest. */
90
91 #ifdef HAVE_NETDB_H
92 #include <netdb.h>
93 #endif
94
95 #ifdef HAVE_SYS_SOCKET_H
96 #include <sys/socket.h>
97 #endif
98
99 #ifdef HAVE_NET_IF_H
100 #include <net/if.h>
101 #endif
102
103 #ifdef HAVE_NET_IF_TYPES_H
104 #include <net/if_types.h>
105 #endif
106
107 #ifdef HAVE_NET_IF_TUN_H
108 #include <net/if_tun.h>
109 #endif
110
111 #ifdef HAVE_NET_IF_TAP_H
112 #include <net/if_tap.h>
113 #endif
114
115 #ifdef HAVE_NETINET_IN_SYSTM_H
116 #include <netinet/in_systm.h>
117 #endif
118
119 #ifdef HAVE_NETINET_IN_H
120 #include <netinet/in.h>
121 #endif
122
123 #ifdef HAVE_ARPA_INET_H
124 #include <arpa/inet.h>
125 #endif
126
127 #ifdef HAVE_NETINET_IP_H
128 #include <netinet/ip.h>
129 #endif
130
131 #ifdef HAVE_NETINET_TCP_H
132 #include <netinet/tcp.h>
133 #endif
134
135 #ifdef HAVE_NETINET_IN6_H
136 #include <netinet/in6.h>
137 #endif
138
139 #ifdef HAVE_NETINET_IP6_H
140 #include <netinet/ip6.h>
141 #endif
142
143 #ifdef HAVE_NET_ETHERNET_H
144 #include <net/ethernet.h>
145 #endif
146
147 #ifdef HAVE_NET_IF_ARP_H
148 #include <net/if_arp.h>
149 #endif
150
151 #ifdef HAVE_NETINET_IP_ICMP_H
152 #include <netinet/ip_icmp.h>
153 #endif
154
155 #ifdef HAVE_NETINET_ICMP6_H
156 #include <netinet/icmp6.h>
157 #endif
158
159 #ifdef HAVE_NETINET_IF_ETHER_H
160 #include <netinet/if_ether.h>
161 #endif
162
163 #ifdef HAVE_MINGW
164 #include <windows.h>
165 #include <winsock2.h>
166 #endif
167
168 #endif /* __TINC_SYSTEM_H__ */