P2P: Allow broadcast socket#18245
Conversation
|
Does the game set SO_BROADCAST on the p2p socket? And I assume it tries to send to 255.255.255.255? |
|
It does yes. Observed on PlayStation All-Stars Battle Royale. Here's the log:
And it does send to 255.255.255.255, I've already observed the beahviour while capturing packets in working consoles. |
|
It seems like it would be wiser to implement the socket option in lv2_socket_p2p::setsockopt, the game calls it in the log you displayed. |
|
@Cri4Key Sorry to revive the thread, for PSABR specifically, if I tell another player to set the IP to 255.255.255.255 in Network settings, would we be able to find each other in-game using the tournament mode? |
|
You need to enable write-acces from maintainers, I wanted to merge it but I can't because of that. |
If a game tries to create a broadcast socket in P2P it will fail, logging
sys_net: Socket error EACCESThis fix allows the native socket to have the option broadcast enabled.