Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TOS (Type Of Service) not working properly (should default to "throughput") in rtorrent in Ubuntu Oneiric?
- Just recompile libtorrent13 with the patch below.
- sudo apt-get build-dep libtorrent
- mkdir x
- cd x
- apt-get source libtorrent
- patch -p1 <tos.patch
- cd libtorrent-0.12.7
- dpkg-buildpackage -rfakeroot
- cd ..
- sudo dpkg --install libtorrent13_0.12.7-6_amd64.deb
- tos.patch:
- --------------------------------------------------------------------------------
- diff -rU 5 orig/libtorrent-0.12.7/src/net/socket_fd.cc fixed/libtorrent-0.12.7/src/net/socket_fd.cc
- --- orig/libtorrent-0.12.7/src/net/socket_fd.cc 2011-10-27 23:43:54.000000000 +0200
- +++ fixed/libtorrent-0.12.7/src/net/socket_fd.cc 2011-10-28 00:43:35.490528256 +0200
- @@ -68,15 +68,10 @@
- bool
- SocketFd::set_priority(priority_type p) {
- check_valid();
- int opt = p;
- -#ifdef RAK_USE_INET6
- - if (m_ipv6_socket)
- - return setsockopt(m_fd, IPPROTO_IPV6, IPV6_TCLASS, &opt, sizeof(opt)) == 0;
- - else
- -#endif
- return setsockopt(m_fd, IPPROTO_IP, IP_TOS, &opt, sizeof(opt)) == 0;
- }
- bool
- SocketFd::set_reuse_address(bool state) {
- --------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement