diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-04-12 12:26:10 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-04-12 12:26:10 -0700 |
| commit | bbd9915056735c4719fa3ac59cc592187647b964 (patch) | |
| tree | 63befe9e0ee100c3b3dc38dfd912d5172319a39a /node/NetworkConfig.hpp | |
| parent | 51fecc0be933c3d6e82044c4e2c28aa841733995 (diff) | |
| download | infinitytier-bbd9915056735c4719fa3ac59cc592187647b964.tar.gz infinitytier-bbd9915056735c4719fa3ac59cc592187647b964.zip | |
Refactor Node for new NetworkConfig
Diffstat (limited to 'node/NetworkConfig.hpp')
| -rw-r--r-- | node/NetworkConfig.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index 5626ddd2..c499eb48 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -193,6 +193,16 @@ public: return r; } + inline std::vector<ZT_VirtualNetworkStaticDevice> relays() const + { + std::vector<ZT_VirtualNetworkStaticDevice> r; + for(unsigned int i=0;i<_staticCount;++i) { + if ((_static[i].flags & ZT_NETWORK_STATIC_DEVICE_IS_RELAY) != 0) + r.push_back(_static[i]); + } + return r; + } + /** * @param fromPeer Peer attempting to bridge other Ethernet peers onto network * @return True if this network allows bridging |
