|
Public Member Functions |
| | PcapNetwork () |
| 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 |
| void | phandler (u_char *u, const pcap_pkthdr *h, const u_char *p) |
| 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_ |
| bpf_program | bpfpgm_ |
| pcap_stat | pcs_ |
| unsigned int | local_netmask_ |