fix optimized build
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user