summaryrefslogtreecommitdiff
path: root/src/lbdecision.hh
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-04-06 11:40:25 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-04-06 11:40:25 -0700
commitc61afbea231483f7c33e37bfc1aa258fca0c6c3f (patch)
treeed4c5126d74aea621655541faea1296df07c8582 /src/lbdecision.hh
parentbae7945ea625fdeb439bf3efa58abf8efddf05cf (diff)
downloadvyatta-wanloadbalance-c61afbea231483f7c33e37bfc1aa258fca0c6c3f.tar.gz
vyatta-wanloadbalance-c61afbea231483f7c33e37bfc1aa258fca0c6c3f.zip
fix for bug 5520.
When checking policy route compare nexthop and interface rather then just checking for an entry. This allows for incorrect entries to be replaced. This would be a problem if different nexthop is readvertised via dhcp to the interface.
Diffstat (limited to 'src/lbdecision.hh')
-rw-r--r--src/lbdecision.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lbdecision.hh b/src/lbdecision.hh
index 7ef9308..e4b5378 100644
--- a/src/lbdecision.hh
+++ b/src/lbdecision.hh
@@ -37,7 +37,7 @@ private:
execute(string cmd, string &stdout, bool read = false);
void
- insert_default(string cmd, int table);
+ insert_default(LBHealth &h, string &nexthop);
map<string,float>
get_new_weights(LBData &data, LBRule &rule);