]> git.meshlink.io Git - meshlink/commitdiff
Use hardcoded value for TUNNEWPPA if net/if_tun.h is missing on Solaris.
authorGuus Sliepen <guus@tinc-vpn.org>
Sat, 7 Dec 2013 21:54:02 +0000 (22:54 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Sat, 7 Dec 2013 21:54:02 +0000 (22:54 +0100)
src/solaris/device.c

index 303da913484ff754e95a031c0a0f07d38c7081e6..351999cd8ca126d0278dc1a4b75440b8ba780910 100644 (file)
 #include "../route.h"
 #include "../utils.h"
 #include "../xalloc.h"
-#include "../if_tun.h"
+
+#ifndef TUNNEWPPA
+#warning Missing net/if_tun.h, using hardcoded value for TUNNEWPPA
+#define TUNNEWPPA       (('T'<<16) | 0x0001)
+#endif
 
 #define DEFAULT_TUN_DEVICE "/dev/tun"
 #define DEFAULT_TAP_DEVICE "/dev/tap"
@@ -46,7 +50,6 @@ static enum {
 int device_fd = -1;
 static int if_fd = -1;
 static int ip_fd = -1;
-static int arp_fd = -1;
 char *device = NULL;
 char *iface = NULL;
 static char *device_info = NULL;