summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Stepler <brandon@stepler.net>2021-03-08 12:40:00 -0500
committerBrandon Stepler <brandon@stepler.net>2021-03-08 12:40:00 -0500
commit2c42f5ec145f1332f23498313473af3d5b24ab44 (patch)
treef46eabd182f6c150ea23c68c168967f8aa3119e9
parentf8de65b5d150c95be839305ecfc8c219c3ef70ca (diff)
downloadvyatta-wanloadbalance-2c42f5ec145f1332f23498313473af3d5b24ab44.tar.gz
vyatta-wanloadbalance-2c42f5ec145f1332f23498313473af3d5b24ab44.zip
wanloadbalance: T3395: fix DHCP filename and ICMP status line
-rw-r--r--src/lbdata.cc2
-rw-r--r--src/lbtest_icmp.cc11
-rw-r--r--src/lbtest_icmp.hh3
3 files changed, 1 insertions, 15 deletions
diff --git a/src/lbdata.cc b/src/lbdata.cc
index 60578de..ed36e37 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/dhcp/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/lbtest_icmp.cc b/src/lbtest_icmp.cc
index 5bdc14d..743895c 100644
--- a/src/lbtest_icmp.cc
+++ b/src/lbtest_icmp.cc
@@ -173,17 +173,6 @@ LBTestICMP::send(int send_sock, const string &iface, const string &target_addr,
}
}
-/**
- *
- *
- **/
-string
-LBTestICMP::status()
-{
- //set the status line to be used when the show command is invoked
- return name() + "\t" + string("Target: ") + _target;
-}
-
/**
diff --git a/src/lbtest_icmp.hh b/src/lbtest_icmp.hh
index 2de9115..e081f49 100644
--- a/src/lbtest_icmp.hh
+++ b/src/lbtest_icmp.hh
@@ -38,9 +38,6 @@ public:
string
name() {return string("ping");}
- string
- status();
-
private:
void
send(int sock, const string &iface, const string &target_addr, int packet_id);