From 6eb77da0947377712bf331ba25424dfe0f7a34e0 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 8 Jul 2013 20:36:33 -0400 Subject: Fix for issue #6: OSX tap device forgets it has IPv6 --- node/NodeConfig.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'node/NodeConfig.hpp') diff --git a/node/NodeConfig.hpp b/node/NodeConfig.hpp index a6ea6293..5caf18ab 100644 --- a/node/NodeConfig.hpp +++ b/node/NodeConfig.hpp @@ -78,6 +78,17 @@ public: return nwlist; } + /** + * Call whack() on all networks' tap devices + */ + inline void whackAllTaps() + { + std::vector< SharedPtr > nwlist; + Mutex::Lock _l(_networks_m); + for(std::map< uint64_t,SharedPtr >::const_iterator n(_networks.begin());n!=_networks.end();++n) + n->second->tap().whack(); + } + /** * @param nwid Network ID * @return True if this network exists -- cgit v1.2.3