sceNetCtlGetInfo added ORBIS_NET_CTL_INFO_MTU case

This commit is contained in:
georgemoralis 2024-10-29 12:38:50 +02:00
parent 0b015daff7
commit 1f81d33ae6
2 changed files with 3 additions and 0 deletions
src/core/libraries/network

View file

@ -162,6 +162,8 @@ int PS4_SYSV_ABI sceNetCtlGetInfo(int code, OrbisNetCtlInfo* info) {
case ORBIS_NET_CTL_INFO_DEVICE:
info->device = ORBIS_NET_CTL_DEVICE_WIRED;
break;
case ORBIS_NET_CTL_INFO_MTU:
info->mtu = 1500; // default value
case ORBIS_NET_CTL_INFO_LINK:
info->link = ORBIS_NET_CTL_LINK_DISCONNECTED;
break;

View file

@ -49,6 +49,7 @@ typedef union OrbisNetCtlInfo {
// GetInfo codes
constexpr int ORBIS_NET_CTL_INFO_DEVICE = 1;
constexpr int ORBIS_NET_CTL_INFO_MTU = 3;
constexpr int ORBIS_NET_CTL_INFO_LINK = 4;
constexpr int ORBIS_NET_CTL_INFO_IP_ADDRESS = 14;