C Language Examples of IPv4 and IPv6 Raw Sockets for Linux

These have been fully revised in 2026 and are now on GitHub here: GitHub Rawsock repository.

An implementation of all these routines with a GUI (using GTK 4) can also be found on GitHub here: GitHub SPS Page.