summaryrefslogtreecommitdiff
path: root/node/NodeConfig.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-07-08 20:36:33 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-07-08 20:36:33 -0400
commit6eb77da0947377712bf331ba25424dfe0f7a34e0 (patch)
treeb3d79e6ceb14f92ae85a71b54ba9b5bbd4e156c6 /node/NodeConfig.hpp
parent366f556e5b80ee44edb575f51b48dde09874fad8 (diff)
downloadinfinitytier-6eb77da0947377712bf331ba25424dfe0f7a34e0.tar.gz
infinitytier-6eb77da0947377712bf331ba25424dfe0f7a34e0.zip
Fix for issue #6: OSX tap device forgets it has IPv6
Diffstat (limited to 'node/NodeConfig.hpp')
-rw-r--r--node/NodeConfig.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/node/NodeConfig.hpp b/node/NodeConfig.hpp
index a6ea6293..5caf18ab 100644
--- a/node/NodeConfig.hpp
+++ b/node/NodeConfig.hpp
@@ -79,6 +79,17 @@ public:
}
/**
+ * 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
*/