Fix for issue #6: OSX tap device forgets it has IPv6
This commit is contained in:
parent
366f556e5b
commit
6eb77da094
4 changed files with 39 additions and 13 deletions
|
@ -78,6 +78,17 @@ public:
|
|||
return nwlist;
|
||||
}
|
||||
|
||||
/**
|
||||
* Call whack() on all networks' tap devices
|
||||
*/
|
||||
inline void whackAllTaps()
|
||||
{
|
||||
std::vector< SharedPtr<Network> > nwlist;
|
||||
Mutex::Lock _l(_networks_m);
|
||||
for(std::map< uint64_t,SharedPtr<Network> >::const_iterator n(_networks.begin());n!=_networks.end();++n)
|
||||
n->second->tap().whack();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nwid Network ID
|
||||
* @return True if this network exists
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue