diff --git a/libretroshare/src/turtle/p3turtle.cc b/libretroshare/src/turtle/p3turtle.cc index eb417b172..439103231 100644 --- a/libretroshare/src/turtle/p3turtle.cc +++ b/libretroshare/src/turtle/p3turtle.cc @@ -872,6 +872,8 @@ void p3turtle::handleSearchResult(RsTurtleSearchResultItem *item) // Routing of turtle tunnel items in a generic manner. Most tunnel packets will use this function, except packets designed for // contructing the tunnels and searching, namely TurtleSearchRequests/Results and OpenTunnel/TunnelOkItems // +// Only packets coming from handleIncoming() end up here, so this function is able to catch the transiting traffic. +// void p3turtle::routeGenericTunnelItem(RsTurtleGenericTunnelItem *item) { #ifdef P3TURTLE_DEBUG @@ -915,6 +917,9 @@ void p3turtle::routeGenericTunnelItem(RsTurtleGenericTunnelItem *item) _traffic_info_buffer.unknown_updn_Bps += static_cast(item)->serial_size() ; + if(dynamic_cast(item) != NULL) + item->setPriorityLevel(QOS_PRIORITY_RS_TURTLE_FORWARD_FILE_DATA) ; + sendItem(item) ; return ; }