New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IP/Top: Fix GetAddrInfo written socket #5506
Conversation
Here is a bunch of the related IOS code: https://gist.github.com/shuffle2/6f443352dbc09bcfe264faea1fc052aa While this PR is correcting the behavior, it's because Note that the gist also shows that canonical name can be returned, which dolphin also doesn't currently handle. You may also want to look for other such cases that we should be handling. |
@shuffle2 |
@sepalani um... Did you test that? It looks like you have inverted the order again compared to my gist... |
I did. It's still working with latest #5507 |
from the gist:
which IOS version is netflix using? |
IOS56 according to Dolphin gamelist. |
I checked latest IOS56 (0000000100000038 v5662). Code/struct looks the same. |
what is the actual netflix code that caused you to suspect something was wrong here? |
It was creating a socket with the family value 0x10 which is the same value as the len. That's why I thought they were swapped. I wonder if that's due to #5497. |
yea...16 is not an accepted family value, so something else must've been up (but is fixed now?) |
It seems so, that's why it's weird. It was a blocking point but I highly suspect that PR #5497 fixed it. |
This is the kind of PR where I'm not really sure of what I'm doing. Lately, the Netflix Channel was having issue with
SOConnect()
after aSOGetAddrInfo()
call complaining about the socket family which was 0x10 a very odd value. I checked and it seemed that value actually wasai_addrlen
so by swapping them around Netflix stopped complaining.Maybe someone can confirm/invalidate the fact that this PR is performing the intended behaviour. @shuffle2 ?
With that, I'm able to get Netflix to its loading screen.
Ready to be reviewed & tested.