diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-07-27 17:01:08 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-07-27 17:01:08 -0700 |
commit | b80e518d20d05646404a28c2a5cbfc86d0221600 (patch) | |
tree | 7d9f5fc32c677819adcb9a679a75b2d73d76cfa4 /src/lbdata.hh | |
parent | 6047ad1d172c1f825ff98468e2ffdb33002c718f (diff) | |
download | vyatta-wanloadbalance-b80e518d20d05646404a28c2a5cbfc86d0221600.tar.gz vyatta-wanloadbalance-b80e518d20d05646404a28c2a5cbfc86d0221600.zip |
clean up all of mangle table on exit, including new entries. fixed bug in target iteration where some targets never completed test cycle
Diffstat (limited to 'src/lbdata.hh')
-rw-r--r-- | src/lbdata.hh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/lbdata.hh b/src/lbdata.hh index a901653..2e9cf63 100644 --- a/src/lbdata.hh +++ b/src/lbdata.hh @@ -146,7 +146,9 @@ public: _is_active(true), _state_changed(true), _last_time_state_changed(0), - _interface_index(0) + _interface_index(0), + _timeout(5), + _time_start(0) {} LBHealth(int interface_index, string &interface) : @@ -157,7 +159,9 @@ public: _state_changed(true), _last_time_state_changed(0), _interface(interface), - _interface_index(interface_index) + _interface_index(interface_index), + _timeout(5), + _time_start(0) {} void put(int rtt); @@ -181,7 +185,7 @@ public: void send_test(); - bool + int recv_test(); public: //variables @@ -201,6 +205,8 @@ public: //variables private: //variables TestIter _test_iter; bool _test_success; + unsigned long _timeout; + unsigned long _time_start; }; /** |