You are not logged in.
Pages: 1
Hello,this may be a silly question but,i have un intersert in examining packet exchnage and how packets are constucted from thier resposible structures,ICMP,and otehr protocol packets and i need help some one to disscus it with me the Structure of a packet construction.
Offline
Thanks,i m doing some research in constructing a packets,the Ip,Tcp,Header,using ip/tcp header Structs of course they are IPV4 ,but,i think it wouldn't be too far for IPV6.Now,what i need to know to construction of packets is how to construct Ip and TCp headers with some code...and what the checksum function does using code,pls,thankyou~
Offline
Well, I already posted links to some code for you... Libnet is all about constructing raw packets, and shows you pretty much all you need to know to do it... Also, if you search here for something like "raw packet" you will find lots of code posted in the forums, as well...
As for what the checksum function does, well it calculates a checksum of the packet... This is just a hash value of (parts of) the packet contents, which is used by the receiver of the packet to verify that it hasn't become corrupt during transit... You can find code for that right here in the forums as well, or inside the libnet source, too...
Offline
Pages: 1