diff options
author | Michael Larson <slioch@eng-140.vyatta.com> | 2008-06-27 09:35:03 -0700 |
---|---|---|
committer | Michael Larson <slioch@eng-140.vyatta.com> | 2008-06-27 09:35:03 -0700 |
commit | f5f5de597b8d488b911f3c74b173115403e40991 (patch) | |
tree | 15ad344af5d596bdb2cfd1506f7685e4e9087e82 | |
parent | 21457bb0f52695a335060d24bfae4f236baf6b0c (diff) | |
download | vyatta-wanloadbalance-f5f5de597b8d488b911f3c74b173115403e40991.tar.gz vyatta-wanloadbalance-f5f5de597b8d488b911f3c74b173115403e40991.zip |
fix for bug 3390, ip rule entry is now converted to a hex value.
-rw-r--r-- | src/lbdecision.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lbdecision.cc b/src/lbdecision.cc index 192a98b..1c2591f 100644 --- a/src/lbdecision.cc +++ b/src/lbdecision.cc @@ -135,7 +135,10 @@ if so then this stuff goes here! execute(string("ip route replace table ") + buf + " default dev " + iface + " via " + iter->second._nexthop); execute(string("ip rule delete table ") + buf); - execute(string("ip rule add fwmark ") + buf + " table " + buf); + + char hex_buf[40]; + sprintf(hex_buf,"%X",ct); + execute(string("ip rule add fwmark ") + hex_buf + " table " + buf); execute(string("iptables -t nat -A WANLOADBALANCE -m connmark --mark ") + buf + " -j SNAT --to-source " + fetch_iface_addr(iface)); |