summaryrefslogtreecommitdiff
path: root/src/lbdatafactory.cc
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/lbdatafactory.cc
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/lbdatafactory.cc')
-rw-r--r--src/lbdatafactory.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc
index 16203b8..87ce746 100644
--- a/src/lbdatafactory.cc
+++ b/src/lbdatafactory.cc
@@ -22,7 +22,9 @@ using namespace std;
LBDataFactory::LBDataFactory(bool debug) :
- _debug(debug)
+ _debug(debug),
+ _lb_health(0),
+ _interface_index(0)
{
}
@@ -169,7 +171,7 @@ LBDataFactory::process_health(const string &key, const string &value)
if (value.empty() == false) {
LBData::InterfaceHealthIter iter = _lb_data._iface_health_coll.find(key);
if (iter == _lb_data._iface_health_coll.end()) {
- _lb_data._iface_health_coll.insert(pair<string,LBHealth>(value,LBHealth()));
+ _lb_data._iface_health_coll.insert(pair<string,LBHealth>(value,LBHealth(++_interface_index)));
}
_health_iter = _lb_data._iface_health_coll.find(value);
}