Does anybody know of any code I can look at that programs directly at the IP layer (raw AF_INET sockets)? I've tried this, supplying my own little header right after the IP header, just like they do with ICMP packets in the ping source, but as soon as I do my sendto I crash my system.