libSceNetCtl debt: note how a title uses the sceNetCtlGetInfo host name codes #10147

Closed
opened 2026-10-23 10:47:36 +00:00 by xXPBSXx · 0 comments
xXPBSXx commented 2026-10-23 10:47:36 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-23T10:47:36Z.


The debt entry in docs/dev/debt/libSceNetCtl.md does not record how a title calls the function. A title call site adds this (call-site addresses included so the reading can be checked).

The changed entry now reads:

sceNetCtlGetInfo (libSceNetCtl) - answers from the host interface that holds an IPv4 address, preferring the one that carries the default route: its address, netmask, gateway, MTU and first two IPv4 DNS servers. The device is reported as wired, the link as connected, the IP configuration as DHCP and the HTTP proxy as off, whatever the host uses, and the Ethernet address is the one sceNetGetMacAddress reports. A gateway or DNS server the interface does not have is reported as 0.0.0.0; what a console reports then is unknown. The DHCP host name (12), the PPPoE user name (13), the HTTP proxy server (20) and the Wi-Fi BSSID and SSID (5, 6) are empty strings, as that configuration sets none of them; the remaining Wi-Fi codes (7-10) and the HTTP proxy port (21) report 0; this follows KytyPS5 and is not measured on hardware. One title (PPSA02225) disassembled for this entry has four call sites (code 12 at 0x1056f0f, 0xa0387f, 0xa26de5; code 14 at 0x1056fa1); what the flag byte it checks means is not shown.

Fix: branch docs/debt-netctl-getinfo-title.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5996379775 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/10147). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-23T10:47:36Z. --- The debt entry in `docs/dev/debt/libSceNetCtl.md` does not record how a title calls the function. A title call site adds this (call-site addresses included so the reading can be checked). The changed entry now reads: > [sceNetCtlGetInfo](../../../core/libs/prx/libSceNetCtl/Export.cpp) (libSceNetCtl) - answers from the host interface that holds an IPv4 address, preferring the one that carries the default route: its address, netmask, gateway, MTU and first two IPv4 DNS servers. The device is reported as wired, the link as connected, the IP configuration as DHCP and the HTTP proxy as off, whatever the host uses, and the Ethernet address is the one `sceNetGetMacAddress` reports. A gateway or DNS server the interface does not have is reported as `0.0.0.0`; what a console reports then is unknown. The DHCP host name (12), the PPPoE user name (13), the HTTP proxy server (20) and the Wi-Fi BSSID and SSID (5, 6) are empty strings, as that configuration sets none of them; the remaining Wi-Fi codes (7-10) and the HTTP proxy port (21) report 0; this follows [KytyPS5](https://github.com/KytyPS5/KytyPS5/blob/main/src/libs/network.cpp) and is not measured on hardware. One title (PPSA02225) disassembled for this entry has four call sites (code 12 at 0x1056f0f, 0xa0387f, 0xa26de5; code 14 at 0x1056fa1); what the flag byte it checks means is not shown. Fix: branch `docs/debt-netctl-getinfo-title`. AI-assisted (Claude Code).
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#10147
No description provided.