English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 20 February 2017, 10:30   #41
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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
PBobbenB is offline  
Old 20 February 2017, 19:31   #42
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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.
Attached Files
File Type: zip tcpdump-eXXvvv.txt.zip (184.8 KB, 106 views)

Last edited by PBobbenB; 20 February 2017 at 19:44.
PBobbenB is offline  
Old 20 February 2017, 21:20   #43
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
Quote:
Originally Posted by PBobbenB View Post
No. UAE only transfers the data, it has no information how the data was created or how MTU handling is done.

Does same happen with different Amiga NIC? Perhaps it is just driver weirdness..
Toni Wilen is offline  
Old 20 February 2017, 21:31   #44
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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...
PBobbenB is offline  
Old 22 February 2017, 14:17   #45
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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
PBobbenB is offline  
Old 22 February 2017, 17:06   #46
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,523
Quote:
Originally Posted by PBobbenB View Post
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
It does not appear to be a problem, WinUAE version uses signed variables and DNS uses Win32-specific code.
Toni Wilen is offline  
Old 22 February 2017, 19:21   #47
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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.
PBobbenB is offline  
Old 22 February 2017, 19:34   #48
Toni Wilen
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.
Toni Wilen is offline  
Old 22 February 2017, 22:08   #49
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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...
PBobbenB is offline  
Old 02 March 2017, 10:56   #50
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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.
PBobbenB is offline  
Old 02 March 2017, 18:06   #51
Toni Wilen
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.
Toni Wilen is offline  
Old 02 March 2017, 21:22   #52
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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...
Attached Files
File Type: zip Tcpdump.zip (82.9 KB, 108 views)
PBobbenB is offline  
Old 03 March 2017, 17:41   #53
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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?
PBobbenB is offline  
Old 03 March 2017, 19:20   #54
Toni Wilen
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:
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?
Yes but it also lacks slirp_redir() = not going to happen until it is implemented.
Toni Wilen is offline  
Old 03 March 2017, 22:38   #55
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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...
PBobbenB is offline  
Old 10 March 2017, 21:23   #56
Toni Wilen
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.
Toni Wilen is offline  
Old 10 March 2017, 23:29   #57
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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.
Attached Files
File Type: zip WinUAE logs-screendump.zip (476.0 KB, 78 views)
PBobbenB is offline  
Old 11 March 2017, 12:13   #58
Toni Wilen
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...
Toni Wilen is offline  
Old 11 March 2017, 14:15   #59
PBobbenB
Registered User
 
PBobbenB's Avatar
 
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.
PBobbenB is offline  
Old 11 March 2017, 16:49   #60
Toni Wilen
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.
Toni Wilen is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:30.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.10326 seconds with 14 queries