summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-08-06 16:24:30 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-08-06 16:24:30 -0700
commit92d9ad4a7fb196011eab589fb6790b55c11731f5 (patch)
treef2cd78f9e2dfa78b5ac8cbd66b60ccf044d43cd6 /node
parent8a804b52571d28ce53bc4e75300794332357409c (diff)
downloadinfinitytier-92d9ad4a7fb196011eab589fb6790b55c11731f5.tar.gz
infinitytier-92d9ad4a7fb196011eab589fb6790b55c11731f5.zip
Some tap interface changes and integration into main.cpp for *nix systems.
Diffstat (limited to 'node')
-rw-r--r--node/EthernetTap.hpp15
1 files changed, 15 insertions, 0 deletions
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<MulticastGroup> &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;