diff options
Diffstat (limited to 'node/NodeConfig.hpp')
| -rw-r--r-- | node/NodeConfig.hpp | 11 |
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 */ |
