Your question is waaay too broad. Help with what? I'd suggest you check out a couple of Linux kernel programming books (Linux Device Drivers, Linux Kernel Development, and Understanding the Linux Kernel as well as volumes 1 and 2 of TCP/IP Illustrated by W. Richard Stevens. Be aware that an entire TCP/IP stack is not something you can whip out in a day (or two, or ten).
|