Re:Let's code a TCP/IP stack, 1: Ethernet and ARP
by VWWHFSfQ on Tuesday March 04, 2025 @08:48AM
(#43254527)
Many years ago, I wrote a pcap/tcpdump parser in pure bash, because it's all I knew how to write "programs" with. It was, of course, the slowest and most brittle thing of all time, but it did actually work. And was kinda fun. Wish I still had that code somewhere.
Re:Let's code a TCP/IP stack, 1: Ethernet and ARP
by jpfr on Thursday March 06, 2025 @03:28PM
(#43284773)
Many embedded devices run the lwip implementation of TCP/IP.
The "POSIX port" of lwip does the same. It takes the raw Ethernet bytes from a TUN/TAP device.
https://github.com/lwip-tcpip/lwip/blob/master/contrib/ports...
[0] https://github.com/cakturk/unet