mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-02-13 17:10:08 +00:00
sceNetCtlGetInfo added ORBIS_NET_CTL_INFO_MTU case
This commit is contained in:
parent
0b015daff7
commit
1f81d33ae6
src/core/libraries/network
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue