DevilPanther's link for raw sockets seems to be down/out-of-date, Try:

http://www.megasecurity.org/Programming/rawip.txt