summaryrefslogtreecommitdiff
path: root/src/lbdatafactory.cc
diff options
context:
space:
mode:
authorEwald van Geffen <ewald@abcdef.be>2014-08-16 03:02:15 +0200
committerDaniil Baturin <daniil@baturin.org>2014-10-17 09:47:49 +0200
commit4cfc0d334a8bba6850728cb21fb53ddee061983f (patch)
tree8f638a0554728ee196c1c41ec6491288b1e88d82 /src/lbdatafactory.cc
parentcaef7a2fa31f65003bbbb8c2ca4fc620490962e7 (diff)
downloadvyatta-wanloadbalance-4cfc0d334a8bba6850728cb21fb53ddee061983f.tar.gz
vyatta-wanloadbalance-4cfc0d334a8bba6850728cb21fb53ddee061983f.zip
Vyatta Bugfix 6245: Sticky incoming connection support for WLB
Signed-off-by: Daniil Baturin <daniil@baturin.org>
Diffstat (limited to 'src/lbdatafactory.cc')
-rw-r--r--src/lbdatafactory.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lbdatafactory.cc b/src/lbdatafactory.cc
index 653e270..9729e62 100644
--- a/src/lbdatafactory.cc
+++ b/src/lbdatafactory.cc
@@ -146,6 +146,11 @@ LBDataFactory::process(const vector<string> &path, int depth, const string &key,
else if (path[0] == "enable-local-traffic") {
process_enablelocaltraffic(l_key,l_value);
}
+ else if (path[0] == "sticky-connections") {
+ if (l_value == "inbound") {
+ process_stickyinboundconnections(l_key,l_value);
+ }
+ }
else if (path[0] == "flush-conntrack") {
process_flushconntrack(l_key,l_value);
}
@@ -225,6 +230,12 @@ LBDataFactory::process_enablelocaltraffic(const string &key, const string &value
}
void
+LBDataFactory::process_stickyinboundconnections(const string &key, const string &value)
+{
+ _lb_data._sticky_inbound_connections = true;
+}
+
+void
LBDataFactory::process_flushconntrack(const string &key, const string &value)
{
_lb_data._flush_conntrack = true;