Something similar from... a while ago. How does it compare?
https://web.archive.org/web/20060615041317/http://www.sics.s...
uIP is an implementation of the TCP/IP protocol stack intended for small 8-bit and 16-bit microcontrollers. It provides the necessary protocols for Internet communication, with a very small code footprint and RAM requirements - the uIP code size is on the order of a few kilobytes and RAM usage is on the order of a few hundred bytes.
https://github.com/adamdunkels/uip
https://en.wikipedia.org/wiki/UIP_(software)
(I believe uIP was extracted and improved upon from Contiki, a C64 OS with TCP/IP support written in C in 2002: https://www.c64-wiki.com/wiki/Contiki)