From 235f4762b700174c795b28de7d4fe2f70cddbcd8 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 6 Jul 2015 15:51:04 -0700 Subject: Plumbing for local interface addresses -- GitHub issue #180 --- node/Node.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'node/Node.hpp') 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 directPaths() const { Mutex::Lock _l(_directPaths_m); -- cgit v1.2.3