MoofTCP is a drop-in replacement for Apple’s MacTCP, designed for 68k Macs running System 6, especially memory-constrained machines such as a 4 MB Mac Classic. It reimplements the TCP/IP stack in portable C while preserving the MacTCP interfaces, so existing network programs can run without modification. Its priorities are reliability, low latency for interactive applications, and useful throughput without using more resident memory than MacTCP. The project includes a control panel, installer, DHCP client, and diagnostic tools; users can also choose a Lite version without DHCP that saves about 5 KB of system memory. The installer can restore the original MacTCP files, including after an interrupted installation.
The software supports TCP, UDP, ICMP echo, and name resolution, with either DHCP or manual network configuration. Testing on a real Classic running System 6.0.8 with a BlueSCSI Wi-Fi adapter, and in the Snow emulator, found several applications working, including Flynn, Wikipedia Reader, NCSA Telnet, Fetch, and TurboGopher. The full driver occupies about 96 KB and leaves roughly 30.7 KB of system heap free after first opening on the tested Classic. MoofTCP does not include an Ethernet driver, has no IPv6 support, and has only been tested with the DaynaPORT driver on System 6.0.8. DHCP also has limitations, including a delay before failing when no server is available. The portable core is tested with sanitizers and fuzzers.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.