Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes

PcapNetwork Class Reference

Inheritance diagram for PcapNetwork:
Network PcapFileNetwork PcapLiveNetwork

List of all members.

Public Member Functions

int rchannel ()
int schannel ()
virtual int command (int argc, const char *const *argv)
virtual int open (int mode, const char *)=0
virtual int skiphdr ()=0
virtual double gents (pcap_pkthdr *)=0
int recv (u_char *buf, int len, sockaddr &, double &)
int send (u_char *buf, int len)
int recv (netpkt_handler callback, void *clientdata)
void close ()
void reset ()
int filter (const char *)
int stat_pkts ()
int stat_pdrops ()

Public Attributes

double offset_
double t_firstpkt_

Protected Member Functions

virtual void bindvars ()=0

Static Protected Member Functions

static void phandler (u_char *u, const pcap_pkthdr *h, const u_char *p)
static void phandler_callback (u_char *u, const pcap_pkthdr *h, const u_char *p)

Protected Attributes

char errbuf_ [PCAP_ERRBUF_SIZE]
char srcname_ [PATH_MAX]
int pfd_
int pcnt_
int state_
int optimize_
pcap_t * pcap_
struct bpf_program bpfpgm_
struct pcap_stat pcs_
unsigned int local_netmask_

The documentation for this class was generated from the following file: