Jump to content

IPv6 issue with hostname lookups


davygrvy

Recommended Posts

uTorrent is 1.8.1 build 12642

OS is Win2k sp4 with the ipv6 preview patch (yes, it's old)

If the tracker is http://ipv6.torrent.ubuntu.com:6969/announce, the trackers tab reports its status as 'hostname not found'. But if I do a manual lookup with: nslookup -type=AAAA ipv6.torrent.ubuntu.com and replace the hostname with the address directly (http://[2001:7b8:3:37:0:0:21:2]:6969/announce) it all works.

I bet there's a problem with getaddrinfo() with ipv6 preview patch that uT is exercising. uT works fine on my XP computer.

Link to comment
Share on other sites

No, can't.. very old laptop.. It's only purpose is to test some ipv6 software I'm writing. I bet the developers could find the bug real easy and add a special case. I had to do that with generating listening ports through getaddrinfo() by setting the port to "1" instead of allowing a passive. See line 450: http://iocpsock.cvs.sourceforge.net/viewvc/iocpsock/iocpsock/ws2tcp.c?revision=1.54&view=markup and line 2754: http://iocpsock.cvs.sourceforge.net/viewvc/iocpsock/iocpsock/iocpsock_lolevel.c?revision=1.109&view=markup

For those that care about windows 2000 (Win2k) and IPv6 support, you do can do it. Grab the "IPv6 Technology Preview for Windows 2000" @ http://www.microsoft.com/downloads/details.aspx?FamilyID=27b1e6a6-bbdd-43c9-af57-dae19795a088&DisplayLang=en and follow these instructions to get it to install on service pack 4:

1. Save the file tpipv6-001205.exe from the download page to a local folder (for example, C:\IPv6TP).

2. From the local folder (C:\IPv6TP), run Tpipv6-001205.exe and extract the files to the same location.

3. From the local folder (C:\IPv6TP), run Setup.exe -x and extract the files to a subfolder of the current folder (for example, C:\IPv6TP\files).

4. From the folder containing the extracted files (C:\IPv6TP\files), open the file Hotfix.inf in a text editor.

5. In the [Version] section of the Hotfix.inf file, change the line NTServicePackVersion=256 to NTServicePackVersion=1024 (768 for SP3), and then save changes.

6. From the folder containing the extracted files (C:\IPv6TP\files), open wship6.dll in a hex editor.

7. Go to offset $3D64 (15716 decimal) and change the string "ip6.int." to be "ip6.arpa.". Make sure the editor is in overwrite/replace mode rather than insert mode. There is plenty of room to modify the string. This fixes an RFC change regarding reverse lookups.

8. From the folder containing the extracted files (C:\IPv6TP\files), run Hotfix.exe.

9. Restart the computer when prompted.

10. After the computer is restarted, continue installing the Microsoft IPv6 Technology Preview for Windows 2000 starting at step 3 of the "Installing the IPv6 Technology Preview for Windows 2000" section of either the Introduction to the Microsoft IPv6 Technology Preview for Windows 2000 or the Readme.htm file in the folder containing Setup.exe (C:\IPv6TP).

As it's clear to me that I can do forward and reverse resolving myself with getaddrinfo() and getnameinfo() with the IPv6 preview, there's a bug in uTorrent 1.8.1

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...