aboutsummaryrefslogtreecommitdiffstats
path: root/src/programs.asm
diff options
context:
space:
mode:
authoruser <user@clank>2026-07-17 02:05:26 +0200
committeruser <user@clank>2026-07-17 02:05:26 +0200
commited752bba5a5d06275531182245737600bf1f72e9 (patch)
treeba250a89b079403c55119cd33ce56ec6d2d562ed /src/programs.asm
parentnet: real IP stack, milestone A - ICMP echo (you can ping a Game Boy) (diff)
downloadgbos-ed752bba5a5d06275531182245737600bf1f72e9.tar.gz
gbos-ed752bba5a5d06275531182245737600bf1f72e9.tar.xz
gbos-ed752bba5a5d06275531182245737600bf1f72e9.zip
net: IP stack milestone B - UDP echo (pseudo-header checksum)
Refactor netd into a protocol dispatcher (IP -> ICMP/UDP) and add UDP echo: swap addresses + ports and recompute the UDP checksum over the pseudo-header (src/dst IP + proto + length) plus the datagram. This is the same pseudo- header TCP uses, so it de-risks the next milestone. tools/gateway.py --mode udp sends a datagram and verifies the echo. Verified: 'hello udp gbos' echoes back with cksum=ok.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions