summaryrefslogtreecommitdiff
path: root/node/NetworkConfig.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/NetworkConfig.hpp')
-rw-r--r--node/NetworkConfig.hpp10
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