summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Larson <mike@ft1.vyatta.com>2009-09-29 09:29:29 -0700
committerMichael Larson <mike@ft1.vyatta.com>2009-09-29 09:29:29 -0700
commit46d57d69bfbdfc48d291dbf4d913560d8084a4f1 (patch)
treea990a105144f05db04f29f1d89f3de5de45fd4d2 /src
parentc7a65df14e51fd04e857039f0c282f1f7cb3b8d0 (diff)
downloadvyatta-wanloadbalance-46d57d69bfbdfc48d291dbf4d913560d8084a4f1.tar.gz
vyatta-wanloadbalance-46d57d69bfbdfc48d291dbf4d913560d8084a4f1.zip
fix for ppp type interfaces that use the wanlb dhcp configuration option.
Diffstat (limited to 'src')
-rw-r--r--src/lbdata.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lbdata.cc b/src/lbdata.cc
index 7226b84..2872258 100644
--- a/src/lbdata.cc
+++ b/src/lbdata.cc
@@ -346,6 +346,17 @@ LBData::update_dhcp_nexthop()
}
fclose(fp);
}
+ else {
+ //check if this is a ppp interface
+ string pppfile("/var/load-balance/ppp/"+h_iter->first);
+ FILE *fp = fopen(pppfile.c_str(),"r");
+ if (fp) {
+ char str[1025];
+ if (fgets(str, 1024, fp)) {
+ h_iter->second._dhcp_nexthop = string(str);
+ }
+ }
+ }
}
++h_iter;
}