mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
RoutingTable build fixes.
This commit is contained in:
parent
61a9c27af0
commit
c278f05181
2 changed files with 22 additions and 11 deletions
|
@ -67,9 +67,24 @@ public:
|
|||
inline operator bool() const { return ((destination)||(gateway)); }
|
||||
};
|
||||
|
||||
static std::vector<RoutingTableEntry> get(bool includeLinkLocal,bool includeLoopback);
|
||||
/**
|
||||
* Get routing table
|
||||
*
|
||||
* @param includeLinkLocal Include link-local IPs?
|
||||
* @param includeLoopback Include loopback routes?
|
||||
*/
|
||||
static std::vector<RoutingTable::Entry> get(bool includeLinkLocal,bool includeLoopback);
|
||||
|
||||
static RoutingTableEntry set(const InetAddress &destination,const InetAddress &gateway,const char *device,int metric,bool ifscope);
|
||||
/**
|
||||
* Add or replace a routing table entry
|
||||
*
|
||||
* @param destination Route destination
|
||||
* @param gateway Gateway or null if local
|
||||
* @param device Device name (if applicable)
|
||||
* @param metric Route metric (if applicable)
|
||||
* @param ifscope Interface bound route? If so, device must be set. (only applicable on some OSes)
|
||||
*/
|
||||
static RoutingTable::Entry set(const InetAddress &destination,const InetAddress &gateway,const char *device,int metric,bool ifscope);
|
||||
};
|
||||
|
||||
} // namespace ZeroTier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue