diff options
| author | user <user@clank> | 2026-07-17 02:05:26 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-07-17 02:05:26 +0200 |
| commit | ed752bba5a5d06275531182245737600bf1f72e9 (patch) | |
| tree | ba250a89b079403c55119cd33ce56ec6d2d562ed /tools/tunbridge.py | |
| parent | net: real IP stack, milestone A - ICMP echo (you can ping a Game Boy) (diff) | |
| download | gbos-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
