Registered Member
|
As I noticed, KTorrent doesn't set any TOS option, so the gateway before my system doesnt get any infos about type of data and will not shape the traffic as expected. There was a thread some time ago about bittorrent setting the wrong tos.
I would expect that ktorrent needs to set IP_TOS to IPTOS_THROUGHPUT as bittorrent does it since 4.1 or so for connections (see BitTorrent-4.4.0/BitTorrent/RawServer.py line 231, 246, 285 - the calling functions will give 8 "IPTOS_THROUGHPUT" as parameter tos. See BitTorrent-4.4.0/BitTorrent/defaultargs.py line 135 peer_socket_tos). And for IPv6 stuff....TCLASS looks something like IP_TOS for IPv6 Since I am not very familiar with the ktorrent source code, just a quick hack:
|
Moderator
|
|
Registered Member
|
Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]