A bunch more osdep/ work...
This commit is contained in:
parent
5e58a7d54a
commit
7475c4047e
18 changed files with 419 additions and 136 deletions
|
@ -31,8 +31,12 @@
|
|||
#include <stdint.h>
|
||||
|
||||
#include <stdexcept>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
#include "MAC.hpp"
|
||||
#include "NonCopyable.hpp"
|
||||
#include "Buffer.hpp"
|
||||
|
||||
namespace ZeroTier {
|
||||
|
||||
|
@ -49,7 +53,7 @@ class EthernetTap;
|
|||
* as well as moving toward a design that makes unit testing the entire app
|
||||
* quite a bit easier.
|
||||
*/
|
||||
class EthernetTapFactory
|
||||
class EthernetTapFactory : NonCopyable
|
||||
{
|
||||
public:
|
||||
EthernetTapFactory() {}
|
||||
|
@ -90,6 +94,11 @@ public:
|
|||
* @param tap Tap instance
|
||||
*/
|
||||
virtual void close(EthernetTap *tap) = 0;
|
||||
|
||||
/**
|
||||
* @return All currently open tap device names
|
||||
*/
|
||||
virtual std::vector<std::string> allTapDeviceNames() const = 0;
|
||||
};
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue