diff options
author | tv <tv@also> | 2011-05-29 16:12:41 +0200 |
---|---|---|
committer | tv <tv@also> | 2011-05-29 16:12:41 +0200 |
commit | 6fac52823412464009993e0539143e6ec200796c (patch) | |
tree | fd0ba54d2df5ea1db154757b7547002623a65f13 /retiolum/doc | |
parent | 590f55d10dd4ce2e00ecf422e38385d3c7bace29 (diff) |
lowered all the hierarchy, again
Diffstat (limited to 'retiolum/doc')
-rw-r--r-- | retiolum/doc/device.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/retiolum/doc/device.c b/retiolum/doc/device.c new file mode 100644 index 00000000..7ffe51dd --- /dev/null +++ b/retiolum/doc/device.c @@ -0,0 +1,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) { +} |