20 February 2017, 10:30 | #41 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
Any thoughts on this reply?: https://bugs.winehq.org/show_bug.cgi?id=42412#c23
|
20 February 2017, 19:31 | #42 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
Now here is a weird one!!
If I run tcpdump -eXXvvv > ram:test.txt and download a file from local file server over FTP (currently testing with A2065 and mtu 1500) the file gets correct md5! And as soon as I stop tcpdump and download the same file again the md5 no longer matches... Attached the dump file, if it gives any clues. Last edited by PBobbenB; 20 February 2017 at 19:44. |
20 February 2017, 21:20 | #43 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
Quote:
Does same happen with different Amiga NIC? Perhaps it is just driver weirdness.. |
|
20 February 2017, 21:31 | #44 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
Tested with RTL8029 with MTU 1500 and it works there too!
Also tried downloading from aminet.net with tcpdump, md5 match, without tcpdump, no md5 match... |
22 February 2017, 14:17 | #45 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
I read somewhere that your slirp code is borrowed from Basilisk II, so I wonder if this could be something?: https://github.com/cebix/macemu/comm...7cff6c0e8e6ac3
and/or this: https://github.com/cebix/macemu/comm...5adcbc86414feb |
22 February 2017, 17:06 | #46 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
Quote:
|
|
22 February 2017, 19:21 | #47 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
If this issue can't be fixed, are there any possibility to implement tun/tap into WinUAE?
That should also fix the speed issue, with mtu 1488 I get only about 17kb/sec, which is kinda slow :-) SheepShaver seem to already have it and also some special built Basilisk II. I use it myself to get AppleTalk to show my ReadyNAS in the "Chooser" in Mac OS 9 or 7. |
22 February 2017, 19:34 | #48 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
You'll need to include much more information. I don't bother to research things that sound uninteresting.
|
22 February 2017, 22:08 | #49 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
Hmm, just read that tun/tap requires kernel level stuff which Wine doesn't support, so that seems to make it a no-no...
|
02 March 2017, 10:56 | #50 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
Have now tried the same in AmigaOS 3.9 with A2065 + Slirp (no bsdsocket.library) and MiamiDX (in Wine 2.0, WinUAE 3.4) and what do you know, it corrupts files as well!
Switch back to bsdsocket.library and all is well again. So that rules it out to being specific to AmigaOS 4. Any easier to debug this issue when it happens in classic AmigaOS? Last edited by PBobbenB; 02 March 2017 at 15:51. |
02 March 2017, 18:06 | #51 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
Probably.. But it still needs small test case. Not file transfer that takes hundreds of ethernet frames.
|
02 March 2017, 21:22 | #52 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
Had to install Roadshow Demo, because MiamiDX tcpdump, could not produce a capture that could be opened in Wireshark.
Did a small download (~70kb) from my fileserver over FTP with IBrowse and attached the results, it actually says tcp out of order in a couple of places... |
03 March 2017, 17:41 | #53 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
Have managed to get BasiliskII for Windows to run under Wine and set it to use slirp and it has no problems downloading from local ftp or internet, no corruption of the files!
Have also run a patched version of Wine with specific tcp debug output and according to that, Wine does its networking correct. As seen here: https://bugs.winehq.org/show_bug.cgi?id=42412#c36 And we can pretty much rule out amiga os, since it happens in both OS 4.1 with Roadshow or MiamiDX and OS 3.9 with MiamiDX or Roadshow. So, from my point of view, the problem is in WinUAE slirp, but it only gets triggered when running on Wine for Mac. I have seen in your code on github that there is a ifdef With_Qemu_slirp in the file slirp_uae.cpp. Is it possible for you to compile WinUAE with that instead so I can test it? And I'm guessing it can only be used for AmigaOS 4 and PPC? |
03 March 2017, 19:20 | #54 | |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
Does also uaenet.device cause same corruption? (It has very different code path than hardware emulations)
Quote:
|
|
03 March 2017, 22:38 | #55 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
uaenet.device is the same, corrupted files from both aminet.net and local ftp server with both IBrowse and AmiTradeCenter.
This is with AmigaOS 3.9 and Roadshow demo configured with uaenet.device... |
10 March 2017, 21:23 | #56 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
I replaced slirp code with current Basilisk II slirp code. Not much testing done but at least DHCP seems to work. Perhaps this fixes it.
winuae.7z updated. |
10 March 2017, 23:29 | #57 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
No, I'm afraid that didn't solve it. Tested with both uaenet.device in AmigaOS 3.9 and A2065 in AmigaOS 4. Tried to test RTL8029, but can't get any connection, despite "shownetstatus" says it got the correct IP's.
Attached logs and screenshot from trying with the RTL8029 in OS 4. |
11 March 2017, 12:13 | #58 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
I also remembered why it was bad idea to use basiliskii slirp directly: it is not 64-bit safe.
Now original 64-bit fixed slirp is back with basiliskii updates merged. There was very little functional changes but perhaps it helps... |
11 March 2017, 14:15 | #59 |
Registered User
Join Date: Feb 2017
Location: Sweden
Age: 45
Posts: 51
|
Well, internet works again for RTL8029 with the new WinUAE, but it still corrupts downloaded files with both RTL8029 and A2065 on OS 4.
|
11 March 2017, 16:49 | #60 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
|
I am running out of options. Unless there is some rarely used feature in slirp that is really broken..
Redownload winuae.7z, use -slirplog 7 command line parameter to dump full slirp messages. Perhaps there is something interesting. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
WinUAE under Wine | gilgamesh | support.WinUAE | 14 | 12 June 2011 15:45 |
WinUAE in Wine under OS X? | pentad | support.WinUAE | 6 | 29 March 2010 20:45 |
wine and winuae | hit | support.WinUAE | 7 | 14 March 2009 13:01 |
WinUAE + Wine | Duke | support.WinUAE | 22 | 15 February 2008 00:43 |
|
|