mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-16 10:30:01 -04:00
added missing record of Dn traffic in turtle router
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7622 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
566d8ca07c
commit
85fce2f2dc
1 changed files with 8 additions and 4 deletions
|
@ -1094,14 +1094,18 @@ void p3turtle::routeGenericTunnelItem(RsTurtleGenericTunnelItem *item)
|
||||||
|
|
||||||
sendItem(item) ;
|
sendItem(item) ;
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
// item is for us. Use the locked region to record the data.
|
||||||
|
|
||||||
|
_traffic_info_buffer.data_dn_Bps += item->serial_size() ;
|
||||||
|
}
|
||||||
|
|
||||||
// The packet was not forwarded, so it is for us. Let's treat it.
|
// The packet was not forwarded, so it is for us. Let's treat it.
|
||||||
// This is done off-mutex, to avoid various deadlocks
|
// This is done off-mutex, to avoid various deadlocks
|
||||||
//
|
//
|
||||||
|
|
||||||
handleRecvGenericTunnelItem(item) ;
|
handleRecvGenericTunnelItem(item) ;
|
||||||
|
|
||||||
delete item ;
|
delete item ;
|
||||||
}
|
}
|
||||||
|
@ -1116,7 +1120,7 @@ void p3turtle::handleRecvGenericTunnelItem(RsTurtleGenericTunnelItem *item)
|
||||||
RsPeerId vpid ;
|
RsPeerId vpid ;
|
||||||
RsTurtleClientService *service ;
|
RsTurtleClientService *service ;
|
||||||
|
|
||||||
if(!getTunnelServiceInfo(item->tunnelId(),vpid,hash,service))
|
if(!getTunnelServiceInfo(item->tunnelId(),vpid,hash,service))
|
||||||
return ;
|
return ;
|
||||||
|
|
||||||
service->receiveTurtleData(item,hash,vpid,item->travelingDirection()) ;
|
service->receiveTurtleData(item,hash,vpid,item->travelingDirection()) ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue