On Mon, 11 Nov 2002, Selcuk Cevher wrote:

> hi..
>
> is there any function available in Winpcap to filter the network traffic in
> order to sniff TCP messages only or UDP datagrams only?
> i know i can use pcap_compile and pcap_setfilter just in order to sniff on
> any specific ports but not to sniff TCP messages or UDP datagrams.
>
> in the same way,is there any function available in Winpcap to filter the
> network traffic in order to sniff IP packets or ARP packets only?
>
> thank you..
>
> note:i use Winpcap 2.3
>

Use pcap_compile/pcap_setfilter and set a filter saying "udp" or "tcp,
check the tcpdump(8) manual for all the avaible filter options:

http://www.openbsd.org/cgi-bin/man.cgi?query=tcpdump&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html


Regards
Jonas Eriksson



==================================================================
 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]?body=unsubscribe
==================================================================

Reply via email to