From f8d4611d15b18bf505de9ca82d74f5102fc57024 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Tue, 12 Aug 2014 17:20:34 -0700 Subject: (1) Tweak LAN locator beacon frequencies, (2) Windows virtual networks now show up as *real* networks and prompt the user to set their location and firewall status (public, private, home/work, etc.). The hack used to achieve #2 should not be examined by children or those suffering from epilepsy or heart conditions. --- node/InetAddress.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'node/InetAddress.hpp') diff --git a/node/InetAddress.hpp b/node/InetAddress.hpp index 74e42670..7cfb1abe 100644 --- a/node/InetAddress.hpp +++ b/node/InetAddress.hpp @@ -77,6 +77,16 @@ public: */ static const InetAddress LO6; + /** + * 0.0.0.0/0 + */ + static const InetAddress DEFAULT4; + + /** + * ::/0 + */ + static const InetAddress DEFAULT6; + InetAddress() throw() { memset(&_sa,0,sizeof(_sa)); } InetAddress(const InetAddress &a) throw() { memcpy(&_sa,&a._sa,sizeof(_sa)); } InetAddress(const struct sockaddr *sa) throw() { this->set(sa); } @@ -147,6 +157,12 @@ public: bool isLinkLocal() const throw(); + /** + * @return True if this ip/netmask would represent a default route (e.g. 0.0.0.0/0) + */ + bool isDefaultRoute() const + throw(); + /** * @return True if this is a loopback address */ -- cgit v1.2.3