summaryrefslogtreecommitdiff
path: root/tunDevice.cpp
blob: 66cf395430b2dea48940dd655c7c7f8e53bb1618 (plain) (blame)
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
#include "openvpn/tun.h"
#include "tunDevice.h"


TunDevice::TunDevice(string dev_name)
{
//  dev = init_tun(dev_name.c_str(), ... );
  
}

TunDevice::~TunDevice()
{
  close_tun(dev);
}

int TunDevice::read(uint8_t *buf, int len)
{
  return read_tun(dev, buf, len);
}

int TunDevice::write(uint8_t *buf, int len)
{
  return write_tun(dev, buf, len);
}