packets
Posted: Sat Dec 25, 2010 2:59 pm
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.
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.