Skip to content

Recover native network runtime and startup - #333

Merged
zeroz41 merged 8 commits into
zeroz41:masterfrom
matthewlewisnewton:recover-network-datagrams-and-packet-pool
Nov 21, 2026
Merged

zeroz41 merged 8 commits into
zeroz41:masterfrom
matthewlewisnewton:recover-network-datagrams-and-packet-pool

Conversation

@matthewlewisnewton

@matthewlewisnewton matthewlewisnewton commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Goal

Recover the game's original interfaces between the C++ socket and lobby code and the C network runtime. On master, the C++ UDP handler describes only the first words of a datagram and supplies its own udp_open declaration. Other paths use partial records, raw offsets, or different declarations for the same entry point. The shared types in this PR make those callers agree on the actual records, callback signatures, and status widths.

Scope

  • Use the full native datagram in the C++ UDP socket handler and share the receive callback declaration with the C stack. Keep the existing C++ network-info request linkage and recover its original stack-frame shape.
  • Recover native thread entries and slots, timer callbacks, packet pool descriptors, and the signed startup result. Use the actual dispatcher setup call and original initialization order.
  • Use the existing packet and protocol types in the DHCP, DNS, and PPP callers so their field accesses and shared call signatures agree.

The patch preserves the existing upstream helper names. The UDP handler's signature symbol follows from using the shared datagram type.

Validation

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

✅ CI passed · 7301eadf78 · run

Check Result
Build + DOL SHA-1 ✅
No regressions (report_delta --check) ✅
Linked units still link ✅
Metric Base PR Δ
Matched data (bytes) 1,758,510 1,758,510 0
Complete data (bytes) 1,758,510 1,758,510 0
Matched code (bytes) 4,353,092 4,353,092 0
Complete code (bytes) 4,353,092 4,353,092 0
Matched functions 27,572 27,572 0
Linked units 2,449 2,449 0

0 new exact functions, 0 function regressions, 1 renamed functions.

@matthewlewisnewton
matthewlewisnewton marked this pull request as draft November 20, 2026 16:49
@matthewlewisnewton
matthewlewisnewton marked this pull request as ready for review November 20, 2026 16:53
@zeroz41
zeroz41 merged commit 0fa391a into zeroz41:master Nov 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants