rawsock C Language Examples of IPv4 and IPv6 Raw Sockets for Linux http://www.pdbuchan.com/rawsock/rawsock.html