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 http://winpcap.polito.it/docs/docs31beta4/html/index.html Flamur Rogova ================================================================== This is the WinPcap users list. It is archived at http://www.mail-archive.com/winpcap-users@winpcap.polito.it/ To unsubscribe use mailto: [EMAIL PROTECTED] ==================================================================