Hi All,

I have previously been using pcap_stats_ex() as defined in WinPcap 3.0
alpha4 to collect and display statistics about a capture session. I used
the counters  ps_recv, ps_drop and bs_capt as defined in PCAP.H (See
below)

struct pcap_stat {
        u_int ps_recv;          /* number of packets received */
        u_int ps_drop;          /* number of packets dropped */
        u_int ps_ifdrop;        /* drops by interface XXX not yet
supported */
#ifdef WIN32
        u_int bs_capt;          /* number of packets that reach the
application */
#endif /* WIN32 */
};


I could not get this working with the new full release of WinPcap 3.0,
and further investigation revealed that the definition of the pcap_stat
structure in PCAP.H has been modified, as shown below:

struct pcap_stat {
        u_int ps_recv;          /* number of packets received */
        u_int ps_drop;          /* number of packets dropped */
        u_int ps_ifdrop;        /* drops by interface XXX not yet
supported */
#ifdef REMOTE
#ifdef WIN32
//      u_int bs_capt;          /* number of packets that reach the
application */
#endif /* WIN32 */
        u_int ps_capt;          /* number of packets that reach the
application; please get rid off the Win32 ifdef */
        u_int ps_sent;          /* number of packets sent by the server
on the network */
        u_int ps_netdrop;       /* number of packets lost on the network
*/
#endif
};

thus causing the problems with the u_int bs_capt. I cannot find any of
these changes in the documentation. Can the developers help ?

Regards
Jaco de Wet


================================================================= This is the WinPcap 
users list. It is archived at
 http://www.mail-archive.com/[EMAIL PROTECTED]/

 To unsubscribe use
 mailto: [EMAIL PROTECTED]
=================================================================

Reply via email to