Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
have you written a NIC driver? if not, that would deffinately be the first place to start as writing a TCP/IP stack doesn't provide much functionality without a network card.
but, assuming you have. You need to create structures of the various protocols (TCP/IP, ARP, RARP, ICMP, IGMP, etc...) and then parse the structure after the packet has been copied onto the appropriate structure.
If you have some decent assembly knowledge, I believe Dex just relased his TCP/IP stack which you could look at to get you more familiar with the stack. Also, if you google for TCP/IP Stacks I'm sure you will find pre-built structures with explanations to guide you along.
packet50071 wrote:I have this VIA Rhine II fast ehternet adapter
I thought there are some standard basic features that are common in all cards. Am i wrong ?
Yes, you need to write a driver for your card, Some times you can not find a data sheet.
So you look for Linux or BSD drivers eg: http://www.gelato.unsw.edu.au/lxr/sourc ... ia-rhine.c
In it you will find "References"