Libnet - Packet handling library for C
Translation of the original in Catalan. Read it in: CatalàCastellano
http://www.securityfocus.com/library/2879
The pdf article discussed at security focus is very interesting for programming TCP/IP at a low level, at frame level.
Little more to add to what was said in the introduction, only that it is a library that is used in quite a few sniffers and network auditors; having seen the article, its use is not very difficult and the abstraction it makes of the problem is not "crappy" at all.
So, if I ever need to program network things I will keep it very much in mind, since it will save me a lot of work at socket level, since I will be able to do without that handling.