summaryrefslogtreecommitdiff
path: root/node/Node.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-06 15:51:04 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-07-06 15:51:04 -0700
commit235f4762b700174c795b28de7d4fe2f70cddbcd8 (patch)
tree2acca7f20487cf20eac76466debdfa60424128da /node/Node.hpp
parent79e9a8bcc26491a43577082ec7edb86020f7ec00 (diff)
downloadinfinitytier-235f4762b700174c795b28de7d4fe2f70cddbcd8.tar.gz
infinitytier-235f4762b700174c795b28de7d4fe2f70cddbcd8.zip
Plumbing for local interface addresses -- GitHub issue #180
Diffstat (limited to 'node/Node.hpp')
-rw-r--r--node/Node.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/node/Node.hpp b/node/Node.hpp
index cd8d68fc..1c260545 100644
--- a/node/Node.hpp
+++ b/node/Node.hpp
@@ -104,6 +104,8 @@ public:
ZT1_VirtualNetworkConfig *networkConfig(uint64_t nwid) const;
ZT1_VirtualNetworkList *networks() const;
void freeQueryResult(void *qr);
+ void addLocalInterfaceAddress(const struct sockaddr_storage *addr,int metric,ZT1_LocalInterfaceAddressTrust trust,int reliable);
+ void clearLocalInterfaceAddresses();
void setNetconfMaster(void *networkControllerInstance);
// Internal functions ------------------------------------------------------
@@ -172,6 +174,9 @@ public:
return nw;
}
+ /**
+ * @return Potential direct paths to me a.k.a. local interface addresses
+ */
inline std::vector<Path> directPaths() const
{
Mutex::Lock _l(_directPaths_m);