-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
This fixes LBP games connecting to Custom Server #11233
Conversation
This fixes LBP games connecting to a custom server
This is a hack at best. No effort is made to document what functionality is missing, only tries to make problems "go away" by sweeping them under the rag. |
Every time a new server appears, a custom build with this hack also appears. From what I see in the community, the socket type used in LBP games is RAW, which supposedly is the only socket that doesn't have a check and therefore "there would be no problem removing this". I don't know what a socket type raw is, how it works or what it eats. I'm just bringing the info. Maybe one of you guys can add the check for socket type raw, I don't know... |
Seems to be the same hack. Also why not add the required error codes to the list of known error codes? With some little effort this patch could be improved drastically. |
Raw sockets aren't associated with a protocol and let you basically forge IP headers. |
That can't be right. I can open up RPCS3 without any Administrative rights, and it will work with this patch. |
Yes because you ignore the fact that it is not implemented and then you ignore the error that inevitably happen because you don't have the rights. |
Maybe it would be possible to let it only use ports above 1024 I think those don't require Administrative rights, would that not be implementable somehow? It sounds odd to me. That it can't be implemented, but ignoring the error as you say it, makes it work? |
it has nothing to do with port number and everything to do with SOCK_RAW as I explained(though ports < 1024 also require admin rights). if (type == SYS_NET_SOCK_RAW)
{
return CELL_OK;
} in a function that should return a socket fd. My guess is the game creates RAW socket to generate ICMP packets to ping other users and determine latency. |
Patch system? I did not know about this. Could you inform me a bit :) |
This patch was made by jvyden This makes it possible to connect LBP games to a custom server. Otherwise it will always disconnect you.