From c8c22bfc511ac65036cd8f8462e0a01757eb4372 Mon Sep 17 00:00:00 2001 From: user Date: Fri, 17 Jul 2026 02:03:05 +0200 Subject: net: real IP stack, milestone A - ICMP echo (you can ping a Game Boy) Start of an actual TCP/IP stack on gbos (TLS stays in a proxy). netd is a userland IP responder over SLIP: our address is 10.0.0.2, the SLIP peer 10.0.0.1. It parses IPv4 headers, answers ICMP echo requests, and rebuilds the packet with correct IP + ICMP checksums (RFC 1071 one's-complement sum, carry-folded - works fine on the SM83). c/netd.c + register; tools/gateway.py gains --mode ping: it crafts ICMP echo requests over SLIP and verifies the replies. Verified: `netd` answers 4 pings, gateway reports reply from 10.0.0.2 with cksum=ok for each. Next: UDP, then TCP. --- include/gbos.inc | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/gbos.inc b/include/gbos.inc index a6467bf..2de2a84 100644 --- a/include/gbos.inc +++ b/include/gbos.inc @@ -218,5 +218,6 @@ DEF PROG_PTEST EQU 22 DEF PROG_NECHO EQU 23 DEF PROG_WGET EQU 24 DEF PROG_CHAT EQU 25 +DEF PROG_NETD EQU 26 ENDC -- cgit v1.3.1-sl0p