--- dsr-options.h 2014-02-19 13:31:01.235985000 +0100 +++ dsr-options_bcp.h 2014-03-06 19:44:52.998436000 +0100 @@ -226,10 +226,6 @@ protected: /** - * \brief Drop trace callback. - */ - TracedCallback > m_dropTrace; - /** * \brief The broadcast IP address. */ Ipv4Address Broadcast; --- dsr-options.cc 2014-02-19 13:31:01.232514000 +0100 +++ dsr-options_bcp.cc 2014-03-06 19:46:17.802514000 +0100 @@ -500,7 +500,6 @@ if (srcAddress == ipv4Address) { NS_LOG_DEBUG ("Discard the packet"); - m_dropTrace (packet); // call the drop trace to show in the tracing return 0; } /* @@ -521,7 +520,6 @@ if (numberAddress >= 255) { NS_LOG_DEBUG ("Discard the packet, malformed header since two many ip addresses in route"); - m_dropTrace (packet); // call the drop trace to show in the tracing return 0; } @@ -540,7 +538,6 @@ if (length % 2 != 0) { NS_LOG_LOGIC ("Malformed header. Drop!"); - m_dropTrace (packet); // call drop trace return 0; } // Check the rreq id for verifying the request id @@ -586,7 +583,6 @@ { // We have received this same route reqeust before, not forwarding it now NS_LOG_LOGIC ("Duplicate request. Drop!"); - m_dropTrace (packet); // call drop trace return 0; } @@ -595,7 +591,6 @@ /* * if the route contains the node address already, drop the request packet */ - m_dropTrace (packet); // call drop trace NS_LOG_DEBUG ("Our node address is already seen in the route, drop the request"); return 0; } @@ -1084,7 +1079,6 @@ if (length % 2 != 0) { NS_LOG_LOGIC ("Malformed header. Drop!"); - m_dropTrace (packet); return 0; } PrintVector (nodeList); @@ -1310,13 +1304,11 @@ if (segsLeft > numberAddress) // The segmentsLeft field should not be larger than the total number of ip addresses { NS_LOG_LOGIC ("Malformed header. Drop!"); - m_dropTrace (packet); return 0; } if (numberAddress - segsLeft - 2 < 0) // The index is invalid { NS_LOG_LOGIC ("Malformed header. Drop!"); - m_dropTrace (packet); return 0; } ackAddress = nodeList[numberAddress - segsLeft - 2]; @@ -1339,14 +1331,12 @@ if (length % 2 != 0) { NS_LOG_LOGIC ("Malformed header. Drop!"); - m_dropTrace (packet); return 0; } if (segsLeft > numberAddress) // The segmentsLeft field should not be larger than the total number of ip addresses { NS_LOG_LOGIC ("Malformed header. Drop!"); - m_dropTrace (packet); return 0; } @@ -1384,7 +1374,6 @@ // Verify the multicast address, leave it here for now if (nextAddress.IsMulticast () || destAddress.IsMulticast ()) { - m_dropTrace (packet); return 0; } // Set the route and forward the data packet @@ -1533,14 +1522,12 @@ if (length % 2 != 0) { NS_LOG_LOGIC ("Malformed header. Drop!"); - m_dropTrace (p); return 0; } if (segmentsLeft > numberAddress) { NS_LOG_LOGIC ("Malformed header. Drop!"); - m_dropTrace (p); return 0; } /* @@ -1565,7 +1552,6 @@ /// to test if the next address is multicast or not if (nextAddress.IsMulticast () || targetAddress.IsMulticast ()) { - m_dropTrace (p); return serializedSize; }