mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
328 B
C++
14 lines
328 B
C++
6 years ago
|
#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
|