diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-27 16:49:49 -0400 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-08-27 16:49:49 -0400 |
commit | 0afcf4877c9694a517a5bf62b604387eb2099aba (patch) | |
tree | 57fa38cfa91498f5d22d6662a56c403d7419f006 | |
parent | aa96bdfd1eef296f60a15550d051fc71d5d7de38 (diff) | |
download | infinitytier-0afcf4877c9694a517a5bf62b604387eb2099aba.tar.gz infinitytier-0afcf4877c9694a517a5bf62b604387eb2099aba.zip |
Build fixes for *nix.
-rw-r--r-- | node/EthernetTap.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/node/EthernetTap.cpp b/node/EthernetTap.cpp index dd6873bc..94ee8adb 100644 --- a/node/EthernetTap.cpp +++ b/node/EthernetTap.cpp @@ -260,6 +260,8 @@ EthernetTap::EthernetTap( _r(renv), _handler(handler), _arg(arg), + _dhcp(false), + _dhcp6(false), _fd(0) { char devpath[64],ethaddr[64],mtustr[16]; @@ -363,6 +365,21 @@ void EthernetTap::whack() void EthernetTap::whack() {} #endif // __APPLE__ / !__APPLE__ +bool EthernetTap::setDhcpEnabled(bool dhcp) +{ + // TODO + return _dhcp; +} + +bool EthernetTap::setDhcp6Enabled(bool dhcp) +{ + return _dhcp6; +} + +void EthernetTap::setDisplayName(const char *dn) +{ +} + #ifdef __LINUX__ static bool ___removeIp(const char *_dev,const InetAddress &ip) { @@ -498,6 +515,12 @@ bool EthernetTap::removeIP(const InetAddress &ip) return false; } +std::set<InetAddress> EthernetTap::allIps() const +{ + // TODO + return ips(); +} + void EthernetTap::put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len) { char putBuf[4096 + 14]; |