summaryrefslogtreecommitdiff
path: root/osdep/BSDEthernetTap.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'osdep/BSDEthernetTap.hpp')
-rw-r--r--osdep/BSDEthernetTap.hpp25
1 files changed, 13 insertions, 12 deletions
diff --git a/osdep/BSDEthernetTap.hpp b/osdep/BSDEthernetTap.hpp
index deefd5c7..5b1fe2dc 100644
--- a/osdep/BSDEthernetTap.hpp
+++ b/osdep/BSDEthernetTap.hpp
@@ -38,10 +38,11 @@
#include "../node/MulticastGroup.hpp"
#include "../node/MAC.hpp"
#include "Thread.hpp"
+#include "EthernetTap.hpp"
namespace ZeroTier {
-class BSDEthernetTap
+class BSDEthernetTap : public EthernetTap
{
public:
BSDEthernetTap(
@@ -54,18 +55,18 @@ public:
void (*handler)(void *,void *,uint64_t,const MAC &,const MAC &,unsigned int,unsigned int,const void *,unsigned int),
void *arg);
- ~BSDEthernetTap();
+ virtual ~BSDEthernetTap();
- void setEnabled(bool en);
- bool enabled() const;
- bool addIp(const InetAddress &ip);
- bool removeIp(const InetAddress &ip);
- std::vector<InetAddress> ips() const;
- void put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len);
- std::string deviceName() const;
- void setFriendlyName(const char *friendlyName);
- void scanMulticastGroups(std::vector<MulticastGroup> &added,std::vector<MulticastGroup> &removed);
- void setMtu(unsigned int mtu);
+ virtual void setEnabled(bool en);
+ virtual bool enabled() const;
+ virtual bool addIp(const InetAddress &ip);
+ virtual bool removeIp(const InetAddress &ip);
+ virtual std::vector<InetAddress> ips() const;
+ virtual void put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len);
+ virtual std::string deviceName() const;
+ virtual void setFriendlyName(const char *friendlyName);
+ virtual void scanMulticastGroups(std::vector<MulticastGroup> &added,std::vector<MulticastGroup> &removed);
+ virtual void setMtu(unsigned int mtu);
void threadMain()
throw();