Use hardcoded value for TUNNEWPPA if net/if_tun.h is missing on Solaris.
This commit is contained in:
parent
cf9bea4e93
commit
b115de2199
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue