--- a/src/contrib/flow-monitor/ipv4-flow-probe.cc Mon May 31 22:23:54 2010 -0700
+++ b/src/contrib/flow-monitor/ipv4-flow-probe.cc Tue Jun 01 09:46:39 2010 +0200
@@ -234,7 +234,8 @@
Ipv4FlowProbeTag fTag;
// ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
- bool tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
+ bool tagFound;
+ tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
NS_ASSERT_MSG (tagFound, "Ipv4FlowProbeTag is missing");
uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
@@ -274,7 +275,8 @@
Ipv4FlowProbeTag fTag;
// ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
- bool tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
+ bool tagFound;
+ tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
NS_ASSERT_MSG (tagFound, "Ipv4FlowProbeTag is missing");
uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
@@ -315,7 +317,8 @@
Ipv4FlowProbeTag fTag;
// ConstCast: see http://www.nsnam.org/bugzilla/show_bug.cgi?id=904
- bool tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
+ bool tagFound;
+ tagFound = ConstCast<Packet> (ipPayload)->RemovePacketTag (fTag);
NS_ASSERT_MSG (tagFound, "FlowProbeTag is missing");
FlowId flowId = fTag.GetFlowId ();