Use hardcoded value for TUNNEWPPA if net/if_tun.h is missing on Solaris.

This commit is contained in:
Guus Sliepen 2013-12-07 22:54:02 +01:00
parent cf9bea4e93
commit b115de2199

View file

@ -33,7 +33,11 @@
#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;