summaryrefslogtreecommitdiffstats
path: root/retiolum/doc/device.c
blob: 7ffe51ddf0e450437078ee6009c5f70f3492b684 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "system.h"
#include "conf.h"
#include "logger.h"
#include "net.h"
#include "route.h"
#include "utils.h"
#include "xalloc.h"

int device_fd = -1;
char *device = NULL;
char *iface = NULL;


bool setup_device(void) {
          device = xstrdup("null");
                  iface = xstrdup("null");
                          device_fd = -1;

                                  return true;
}

void close_device(void) {
          free(device);
                  free(iface);
}

bool read_packet(vpn_packet_t *packet) {

          return true;
}

bool write_packet(vpn_packet_t *packet) {
                  return true;
}

void dump_device_stats(void) {
}