Browse Source

Build fixes for *nix.

Adam Ierymenko 12 years ago
parent
commit
0afcf4877c
1 changed files with 23 additions and 0 deletions
  1. 23 0
      node/EthernetTap.cpp

+ 23 - 0
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];