Browse Source

Fix for allIps -> ips in EthernetTap on Unix.

Adam Ierymenko 11 years ago
parent
commit
eb554a504d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      node/EthernetTap.cpp

+ 3 - 3
node/EthernetTap.cpp

@@ -536,10 +536,10 @@ bool EthernetTap::removeIP(const InetAddress &ip)
 	return false;
 }
 
-std::set<InetAddress> EthernetTap::allIps() const
+std::set<InetAddress> EthernetTap::ips() const
 {
-	// TODO
-	return ips();
+	Mutex::Lock _l(_ips_m);
+	return _ips;
 }
 
 void EthernetTap::put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len)