lokinet/llarp/service/tun.cpp
2018-08-08 15:37:33 -04:00

14 lines
328 B
C++

#include <llarp/service/tun.hpp>
namespace llarp
{
namespace service
{
TunEndpoint::TunEndpoint(const std::string& ifname, llarp_router* r)
: Endpoint("tun-" + ifname, r)
{
m_tunif = tuntap_init();
tuntap_set_ifname(m_tunif, ifname.c_str());
}
} // namespace service
} // namespace llarp