Some tap interface changes and integration into main.cpp for *nix systems.

This commit is contained in:
Adam Ierymenko 2014-08-06 16:24:30 -07:00
parent 8a804b5257
commit 92d9ad4a7f
4 changed files with 55 additions and 3 deletions

View file

@ -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;