added ORBIS_NET_CTL_INFO_MTU

This commit is contained in:
georgemoralis 2025-01-05 19:11:25 +02:00
parent 194907953a
commit c244b9cd65
2 changed files with 4 additions and 1 deletions

View File

@ -181,8 +181,10 @@ int PS4_SYSV_ABI sceNetCtlGetInfo(int code, OrbisNetCtlInfo* info) {
} }
} }
} }
} break;
case ORBIS_NET_CTL_INFO_MTU:
info->mtu = 1500; // default value
break; break;
}
default: default:
LOG_ERROR(Lib_NetCtl, "{} unsupported code", code); LOG_ERROR(Lib_NetCtl, "{} unsupported code", code);
} }

View File

@ -49,6 +49,7 @@ union OrbisNetCtlInfo {
// GetInfo codes // GetInfo codes
constexpr int ORBIS_NET_CTL_INFO_DEVICE = 1; 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_LINK = 4;
constexpr int ORBIS_NET_CTL_INFO_IP_ADDRESS = 14; constexpr int ORBIS_NET_CTL_INFO_IP_ADDRESS = 14;