Re: [WinPcap-users] determionation of the packet protocol

2005-03-31 Thread Joao Lopes
Another thing ... How can i analyse IP Packet and discovery if the application protocol who send him is HTTP, FTP, SMTP, etc.. ? Flamur Rogova wrote: Hi, How can I determine after pcap_next_ex whether the caught packet was from UDP or TCP connection? you have to

Re: [WinPcap-users] determionation of the packet protocol

2005-03-31 Thread Flamur Rogova
Hi, How can I determine after pcap_next_ex whether the caught packet was from UDP or TCP connection? you have to parse IP header and read the protocol field, which tells what type of packet is carried within IP packet, (TCP, UDP, ICMP, ) here is an example

Re: [WinPcap-users] determionation of the packet protocol

2005-03-31 Thread Flamur Rogova
On Thu, 31 Mar 2005 14:23:03 +0100 Joao Lopes [EMAIL PROTECTED] wrote: Another thing ... How can i analyse IP Packet and discovery if the application protocol who send him is HTTP, FTP, SMTP, etc.. ? to determine application protocol type look at port number/transport combination.

RE: [WinPcap-users] determionation of the packet protocol

2005-03-31 Thread Alex Narinsky
@winpcap.polito.it Subject: Re: [WinPcap-users] determionation of the packet protocol Hi, How can I determine after pcap_next_ex whether the caught packet was from UDP or TCP connection? you have to parse IP header and read the protocol field, which tells what type of packet is carried within

[WinPcap-users] determionation of the packet protocol

2005-03-30 Thread Alex Narinsky
Hi, I have a filter that catches both UDP and TCP packets. How can I determine after pcap_next_ex whether the caught packet was from UDP or TCP connection? Thank you Alex -Original Message- From: Flamur Rogova [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 11:36 PM To: