This commit is contained in:
Guus Sliepen 2004-11-01 17:02:19 +00:00
parent 82b29e9a3b
commit 1f00810da3
10 changed files with 24 additions and 28 deletions

View file

@ -40,11 +40,11 @@ char *device = NULL;
char *iface = NULL;
char *device_info = NULL;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
pid_t reader_pid;
int sp[2];
static pid_t reader_pid;
static int sp[2];
bool setup_device(void)
{

View file

@ -39,8 +39,8 @@ int device_fd = -1;
char *device;
char *iface;
char *device_info;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
static device_type_t device_type = DEVICE_TYPE_TUN;
bool setup_device(void)

View file

@ -33,8 +33,8 @@ int device_fd = -1;
char *device;
char *iface;
char *device_info;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
bool setup_device(void)
{

View file

@ -46,14 +46,14 @@ typedef enum device_type_t {
} device_type_t;
int device_fd = -1;
device_type_t device_type;
static device_type_t device_type;
char *device;
char *iface;
char ifrname[IFNAMSIZ];
char *device_info;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
bool setup_device(void)
{

View file

@ -35,13 +35,13 @@
#include "mingw/common.h"
int device_fd = 0;
HANDLE device_handle = INVALID_HANDLE_VALUE;
static HANDLE device_handle = INVALID_HANDLE_VALUE;
char *device = NULL;
char *iface = NULL;
char *device_info = NULL;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
extern char *myport;

View file

@ -37,8 +37,8 @@ char *device;
char *iface;
char *device_info;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
bool setup_device(void)
{

View file

@ -30,16 +30,13 @@
#define DEFAULT_DEVICE "/dev/tun0"
#define DEVICE_TYPE_ETHERTAP 0
#define DEVICE_TYPE_TUNTAP 1
int device_fd = -1;
char *device;
char *iface;
char *device_info;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
bool setup_device(void)
{

View file

@ -48,8 +48,8 @@ char *interface;
char ifrname[IFNAMSIZ];
char *device_info;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
bool setup_device(void)
{

View file

@ -37,11 +37,10 @@
int device_fd = -1;
char *device = NULL;
char *iface = NULL;
char ifrname[IFNAMSIZ];
char *device_info = NULL;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
bool setup_device(void)
{

View file

@ -43,8 +43,8 @@ char *device_info;
extern char *identname;
extern bool running;
int device_total_in = 0;
int device_total_out = 0;
static int device_total_in = 0;
static int device_total_out = 0;
enum request_type { REQ_NEW_CONTROL };