lokinet/llarp/handlers/tun.cpp

20 lines
386 B
C++
Raw Normal View History

2018-08-15 15:36:34 +00:00
#include <llarp/service/tun.hpp>
namespace llarp
{
namespace service
{
TunEndpoint::TunEndpoint(const std::string &ifname, llarp_router *r)
: Endpoint("tunif-" + ifname, r)
, m_tunif(tuntap_init())
, m_IfName(ifname)
{
}
TunEndpoint::~TunEndpoint()
{
tuntap_destroy(m_tunif);
}
} // namespace service
} // namespace llarp