From 92d9ad4a7fb196011eab589fb6790b55c11731f5 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 6 Aug 2014 16:24:30 -0700 Subject: Some tap interface changes and integration into main.cpp for *nix systems. --- node/EthernetTap.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'node') diff --git a/node/EthernetTap.hpp b/node/EthernetTap.hpp index 87ab607d..0819fb49 100644 --- a/node/EthernetTap.hpp +++ b/node/EthernetTap.hpp @@ -196,6 +196,21 @@ public: */ virtual bool updateMulticastGroups(std::set &groups) = 0; + /** + * Should this tap device get a pseudo-default-route? + * + * Some platforms (cough Windows) want all "real" network devices to have a + * routing table entry for default, even if it's got a high metric and is + * never used and goes nowhere. If this returns true, the underlying node + * code will use RoutingTable to create one if no default route is + * otherwise defined. + * + * Base class default returns false. Override to return true if needed. + * + * @return True if pseudo-default-route should always exist + */ + virtual bool createPseudoDefaultRoute() const { return false; } + protected: const char *_implName; MAC _mac; -- cgit v1.2.3