From b7a4eaaac867baad2aefa14f49caa53fba200d7d Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Thu, 8 Jun 2023 20:35:35 +0100 Subject: [PATCH] dsr: Fix variable redeclaration warning --- src/dsr/model/dsr-rreq-table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsr/model/dsr-rreq-table.cc b/src/dsr/model/dsr-rreq-table.cc index c2ae7fe76..aec5da33d 100644 --- a/src/dsr/model/dsr-rreq-table.cc +++ b/src/dsr/model/dsr-rreq-table.cc @@ -288,7 +288,7 @@ DsrRreqTable::FindSourceEntry(Ipv4Address src, Ipv4Address dst, uint16_t id) { receivedRreqEntryList.pop_front(); } - Ipv4Address src = i->first; + // We loop the receive rreq entry to find duplicate for (std::list::const_iterator j = receivedRreqEntryList.begin(); j != receivedRreqEntryList.end();