From f5f5de597b8d488b911f3c74b173115403e40991 Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Fri, 27 Jun 2008 09:35:03 -0700 Subject: fix for bug 3390, ip rule entry is now converted to a hex value. --- src/lbdecision.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)); -- cgit v1.2.3