summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-09-09 12:53:44 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-09-09 12:53:44 -0700
commitfb46a546db69ea578b8abc5451fc03cb91dd38cf (patch)
tree80d56f1702b2261915dda78321dfa17f9428369c
parentdebc4c45ee138f7e59ec3adbc031cd6e0b77eae0 (diff)
downloadinfinitytier-fb46a546db69ea578b8abc5451fc03cb91dd38cf.tar.gz
infinitytier-fb46a546db69ea578b8abc5451fc03cb91dd38cf.zip
Just always do route bifurcation on Linux for now... basically the old behavior.
-rw-r--r--osdep/ManagedRoute.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/osdep/ManagedRoute.cpp b/osdep/ManagedRoute.cpp
index 59073d0e..15ca3c03 100644
--- a/osdep/ManagedRoute.cpp
+++ b/osdep/ManagedRoute.cpp
@@ -470,7 +470,7 @@ bool ManagedRoute::sync()
#ifdef __LINUX__ // ----------------------------------------------------------
- if (needBifurcation) {
+ //if (needBifurcation) {
if (!_applied.count(leftt)) {
_applied.insert(leftt);
_routeCmd("replace",leftt,_via,(_via) ? (const char *)0 : _device);
@@ -479,11 +479,11 @@ bool ManagedRoute::sync()
_applied.insert(rightt);
_routeCmd("replace",rightt,_via,(_via) ? (const char *)0 : _device);
}
- if (_applied.count(_target)) {
+ /*if (_applied.count(_target)) {
_applied.erase(_target);
_routeCmd("del",_target,_via,(_via) ? (const char *)0 : _device);
- }
- } else {
+ }*/
+ /*} else {
if (_applied.count(leftt)) {
_applied.erase(leftt);
_routeCmd("del",leftt,_via,(_via) ? (const char *)0 : _device);
@@ -496,7 +496,7 @@ bool ManagedRoute::sync()
_applied.insert(_target);
_routeCmd("replace",_target,_via,(_via) ? (const char *)0 : _device);
}
- }
+ }*/
#endif // __LINUX__ ----------------------------------------------------------