summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMihail Vasiliev <mick@corp.linkintel.ru>2016-04-02 19:48:05 +0300
committerMihail Vasiliev <mick@corp.linkintel.ru>2016-04-02 19:48:05 +0300
commit12f19de392ec9eaebc4ec51ac19f225288147832 (patch)
tree4c04da61258abfe50cbd39c0c2dd91cf5e1a2aea /src
parent809651ebaa701ffc6e222257c64720f77b3d14c3 (diff)
parente611d966761270dbb80cf8ff77698d8b571a6ebe (diff)
downloadvyatta-wanloadbalance-12f19de392ec9eaebc4ec51ac19f225288147832.tar.gz
vyatta-wanloadbalance-12f19de392ec9eaebc4ec51ac19f225288147832.zip
Merge branch 'current' into HEAD
Diffstat (limited to 'src')
-rw-r--r--src/lbdata.cc2
-rw-r--r--src/main.cc1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/lbdata.cc b/src/lbdata.cc
index 99c36e7..60578de 100644
--- a/src/lbdata.cc
+++ b/src/lbdata.cc
@@ -332,7 +332,7 @@ LBData::update_dhcp_nexthop()
LBData::InterfaceHealthIter h_iter = _iface_health_coll.begin();
while (h_iter != _iface_health_coll.end()) {
if (h_iter->second._nexthop == "dhcp") {
- string file("/var/lib/dhcp3/dhclient_"+h_iter->first+"_lease");
+ string file("/var/lib/dhcp/dhclient_"+h_iter->first+"_lease");
FILE *fp = fopen(file.c_str(),"r");
if (fp) {
char str[1025];
diff --git a/src/main.cc b/src/main.cc
index 1904885..7994696 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -14,6 +14,7 @@
#include "stdlib.h"
#include <unistd.h>
#include <iostream>
+#include <unistd.h>
#include "loadbalance.hh"
bool g_check_path = false;