--- a/src/dsr/model/dsr-options.cc Sun May 13 10:39:34 2012 -0700
+++ b/src/dsr/model/dsr-options.cc Sun May 13 10:47:11 2012 -0700
@@ -621,8 +621,8 @@
bool addRoute = false;
if (numberAddress > 0)
{
- RouteCacheEntry toSource (/*IP_VECTOR=*/m_finalRoute, /*dst=*/
- dst, /*expire time=*/ActiveRouteTimeout);
+ RouteCacheEntry toSource (/*IP_VECTOR=*/ m_finalRoute, /*dst=*/
+ dst, /*expire time=*/ ActiveRouteTimeout);
if (dsr->IsLinkCache ())
{
addRoute = dsr->AddRoute_Link (m_finalRoute, ipv4Address);
@@ -984,7 +984,7 @@
RouteCacheEntry toDestination (/*IP_VECTOR=*/ nodeList, /*dst=*/ dst, /*expire time=*/ ActiveRouteTimeout);
NS_ASSERT (nodeList.front () == ipv4Address);
bool addRoute = false;
- if(dsr->IsLinkCache())
+ if (dsr->IsLinkCache ())
{
addRoute = dsr->AddRoute_Link (nodeList, ipv4Address);
}
@@ -1051,7 +1051,7 @@
RouteCacheEntry toDestination (/*IP_VECTOR=*/ cutRoute, /*dst=*/ dst, /*expire time=*/ ActiveRouteTimeout);
NS_ASSERT (cutRoute.front () == ipv4Address);
bool addRoute = false;
- if(dsr->IsLinkCache())
+ if (dsr->IsLinkCache ())
{
addRoute = dsr->AddRoute_Link (nodeList, ipv4Address);
}
@@ -1207,7 +1207,7 @@
p->CopyData (data, size);
uint8_t optionType = 0;
optionType = *(data);
- NS_LOG_DEBUG ("The packet size over here " << p->GetSize());
+ NS_LOG_DEBUG ("The packet size over here " << p->GetSize ());
NS_LOG_DEBUG ("The option type over here " << (uint32_t)optionType);
if (optionType == 160)
@@ -1289,7 +1289,7 @@
}
// Set the route and forward the data packet
SetRoute (nextAddress, ipv4Address);
- NS_LOG_DEBUG ("dsr packet size " << dsrP->GetSize());
+ NS_LOG_DEBUG ("dsr packet size " << dsrP->GetSize ());
dsr->ForwardPacket (dsrP, newSourceRoute, ipv4Header, realSource, nextAddress, targetAddress, protocol, m_ipv4Route);
}
return sourceRoute.GetSerializedSize ();