fix optimized build

This commit is contained in:
Tom Henderson
2013-04-28 23:22:34 -07:00
parent a7ae0c3b86
commit 40f6318eea
2 changed files with 2 additions and 3 deletions

View File

@@ -1230,7 +1230,7 @@ uint8_t DsrOptionSR::Process (Ptr<Packet> packet, Ptr<Packet> dsrP, Ipv4Address
if (destAddress != destination)
{
NS_LOG_DEBUG ("Process the promiscuously received packet");
bool findPassive;
bool findPassive = false;
int32_t nNodes = NodeList::GetNNodes ();
for (int32_t i = 0; i < nNodes; ++i)
{

View File

@@ -1249,13 +1249,12 @@ bool DsrRouting::PromiscReceive (Ptr<NetDevice> device, Ptr<const Packet> packet
if (optionType == 96) // This is the source route option
{
Ipv4Address promiscSource = GetIPfromMAC (Mac48Address::ConvertFrom (from));
Ipv4Address promiscDestination = GetIPfromMAC (Mac48Address::ConvertFrom (to));
dsrOption = GetOption (optionType); // Get the relative DSR option and demux to the process function
NS_LOG_DEBUG (Simulator::Now ().GetSeconds () <<
" DSR node " << m_mainAddress <<
" overhearing packet PID: " << p->GetUid () <<
" from " << promiscSource <<
" to " << promiscDestination <<
" to " << GetIPfromMAC (Mac48Address::ConvertFrom (to)) <<
" with source IP " << ipv4Header.GetSource () <<
" and destination IP " << ipv4Header.GetDestination () <<
" and packet : " << *dsrPacket);