Page 1 of 1

packets

Posted: Sat Dec 25, 2010 2:59 pm
by lama
i have simple question about packets and protocols. when i receive packet, it can be udp, tcp... whatever, depending on packet's data field format.
what i want to know is, how can i recognize procotol type from ip header (i dont know how to call it, ehm - just the main header, the top header.. you know what i mean) . i have noticed, that ip header contains protocol type byte, but i cant find any list of numbers that would have told me what protocol is that.

thanks for the answer.

Re: packets

Posted: Sat Dec 25, 2010 3:16 pm
by linuxfood
Basic research skills. I don't mean to be hostile here, but research skills are necessary for OS development, and even engineering in general.

FWIW, some google search terms to get you started (sorted by specificity to your question):
- ip protocol numbers
- ip protocol
- packet

-B

Re: packets

Posted: Sat Dec 25, 2010 3:22 pm
by Hangin10

Re: packets

Posted: Sat Dec 25, 2010 3:29 pm
by lama
great great great ! :))) just what i wanted, perfect :)
thanks a lot :)

Re: packets

Posted: Sun Dec 26, 2010 1:48 am
by pcmattman
If you're thinking about network protocols, it's time to get familiar with RFCs. They have all the information you need, and are generally easy to read. Software like Wireshark will help you understand what you're reading if you get lost.

Have fun with your research :).