projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Increase MTU by 4 bytes to allow VLAN tagged Ethernet frames in hub and switch mode.
[tinc]
/
system.h
diff --git
a/system.h
b/system.h
index
73f7aeb
..
b0d23c8
100644
(file)
--- a/
system.h
+++ b/
system.h
@@
-1,7
+1,7
@@
/*
system.h -- system headers
/*
system.h -- system headers
- Copyright (C) 1998-200
3 Ivo Timmermans <ivo@o2w.nl
>
-
2003 Guus Sliepen <guus@sliepen.eu
.org>
+ Copyright (C) 1998-200
4 Ivo Timmermans <ivo@tinc-vpn.org
>
+
2003-2004 Guus Sliepen <guus@tinc-vpn
.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-27,7
+27,6
@@
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
-#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
@@
-36,6
+35,14
@@
#include <fcntl.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
+#ifdef HAVE_STDBOOL_H
+#include <stdbool.h>
+#else
+typedef int bool;
+#define true 1
+#define false 0
+#endif
+
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
#ifdef HAVE_TERMIOS_H
#include <termios.h>
#endif
@@
-85,10
+92,6
@@
#include <netdb.h>
#endif
#include <netdb.h>
#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
@@
-105,6
+108,10
@@
#include <netinet/in.h>
#endif
#include <netinet/in.h>
#endif
+#ifdef HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+
#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h>
#endif
#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h>
#endif
@@
-113,6
+120,14
@@
#include <netinet/tcp.h>
#endif
#include <netinet/tcp.h>
#endif
+#ifdef HAVE_NETINET_IN6_H
+#include <netinet/in6.h>
+#endif
+
+#ifdef HAVE_NETINET_IP6_H
+#include <netinet/ip6.h>
+#endif
+
#ifdef HAVE_MINGW
#include <windows.h>
#include <winsock2.h>
#ifdef HAVE_MINGW
#include <windows.h>
#include <winsock2.h>