packets

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.
Post Reply
lama
Member
Member
Posts: 83
Joined: Thu Apr 16, 2009 8:41 am

packets

Post 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.
User avatar
linuxfood
Member
Member
Posts: 38
Joined: Wed Dec 31, 2008 12:22 am

Re: packets

Post 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
Hangin10
Member
Member
Posts: 162
Joined: Wed Feb 27, 2008 12:40 am

Re: packets

Post by Hangin10 »

lama
Member
Member
Posts: 83
Joined: Thu Apr 16, 2009 8:41 am

Re: packets

Post by lama »

great great great ! :))) just what i wanted, perfect :)
thanks a lot :)
pcmattman
Member
Member
Posts: 2566
Joined: Sun Jan 14, 2007 9:15 pm
Libera.chat IRC: miselin
Location: Sydney, Australia (I come from a land down under!)
Contact:

Re: packets

Post 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 :).
Post Reply