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.
20 lines
379 B
C++
20 lines
379 B
C++
6 years ago
|
#ifndef LLARP_SERVICE_TUN_HPP
|
||
|
#define LLARP_SERVICE_TUN_HPP
|
||
|
#include <tuntap.h>
|
||
|
#include <llarp/service/endpoint.hpp>
|
||
|
|
||
|
namespace llarp
|
||
|
{
|
||
|
namespace service
|
||
|
{
|
||
|
struct TunEndpoint : public Endpoint
|
||
|
{
|
||
|
TunEndpoint(const std::string& ifname, llarp_router* r);
|
||
|
~TunEndpoint();
|
||
|
|
||
|
device* m_tunif;
|
||
|
};
|
||
|
} // namespace service
|
||
|
} // namespace llarp
|
||
|
|
||
|
#endif
|