summaryrefslogtreecommitdiff
path: root/src/lbdata.hh
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2008-09-25 12:13:25 -0700
committerslioch <slioch@eng-140.vyatta.com>2008-09-25 12:13:25 -0700
commitbdf25c7abb889b44dc9728a3abe8e153bd828324 (patch)
tree0dcdbb6dc99c61b7251896943b61ff336e0706fc /src/lbdata.hh
parent9be5bc2b6f7094cd54366aeea659be899cf0122b (diff)
downloadvyatta-wanloadbalance-bdf25c7abb889b44dc9728a3abe8e153bd828324.tar.gz
vyatta-wanloadbalance-bdf25c7abb889b44dc9728a3abe8e153bd828324.zip
fix for bug 3710. also found and fixed another bug with restarting of wlb after changing rule set. this simplifies the application of the rules to
the mangle table.
Diffstat (limited to 'src/lbdata.hh')
-rw-r--r--src/lbdata.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lbdata.hh b/src/lbdata.hh
index f4ddade..8715ef5 100644
--- a/src/lbdata.hh
+++ b/src/lbdata.hh
@@ -68,13 +68,14 @@ public:
class LBHealth {
public:
- LBHealth() :
+ LBHealth(int interface_index) :
_success_ct(0),
_failure_ct(0),
_ping_resp_time(0),
_hresults(10),
_is_active(true),
- _state_changed(true)
+ _state_changed(true),
+ _interface_index(interface_index)
{}
void put(int rtt);
@@ -99,6 +100,7 @@ class LBHealth {
LBHealthHistory _hresults;
bool _is_active;
bool _state_changed;
+ int _interface_index;
};