try Tcp/Ip Lean web servers for embedded systems ,by Jeremy Bentham, published by Cmp books. The protocols are well explained, there are also software code for various protocols written or CCS C compiler, but as these are well explained you can easily adapt it to your own c compiler.
The book does not list out a complete Tcp/ip stack but the various components of the stack are listed out. The book uses a 16f877a mcu as an example, but I think realistically this is not possible a you need quite a lot of ram/rom to implement a working tp/ip stack.
but various useful techniques and functions are given, so that you can easily develop a stack on your own. I have managed to make my own stack that implements ARP, TCP, UDP, FTP protocols by reading this book. I plan to complete the project once i get more time.
thanks
a